Skip to content

Commit dfec4ef

Browse files
author
Martin Wehking
authored
Use object directly instead of accessing ArrayRef (#83263)
Use RegOp directly inside debug code to silence a static analyzer that warns about accessing it through its ArrayRef wrapper.
1 parent 924ad19 commit dfec4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ MachineBasicBlock *AMDGPUMachineCFGStructurizer::createIfRegion(
22922292
MachineOperand::CreateReg(Reg, false, false, true);
22932293
ArrayRef<MachineOperand> Cond(RegOp);
22942294
LLVM_DEBUG(dbgs() << "RegionExitReg: ");
2295-
LLVM_DEBUG(Cond[0].print(dbgs(), TRI));
2295+
LLVM_DEBUG(RegOp.print(dbgs(), TRI));
22962296
LLVM_DEBUG(dbgs() << "\n");
22972297
TII->insertBranch(*RegionExit, CurrentRegion->getEntry(), RegionExit,
22982298
Cond, DebugLoc());

0 commit comments

Comments
 (0)