Skip to content

Commit 824f2bc

Browse files
committed
[LivePhysRegs] Use .asMCReg() rather than cast (NFC)
1 parent d9a192c commit 824f2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/LivePhysRegs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ bool llvm::isPhysRegUsedAfter(Register Reg, MachineBasicBlock::iterator MBI) {
366366
// If we hit the end of the block, check whether Reg is live into a
367367
// successor.
368368
for (const auto &LO : MBB->liveouts())
369-
if (LO.PhysReg == MCRegister(Reg) && LO.LaneMask.any())
369+
if (LO.PhysReg == Reg.asMCReg() && LO.LaneMask.any())
370370
return true;
371371

372372
return false;

0 commit comments

Comments
 (0)