Skip to content

Commit ee8c14b

Browse files
authored
[LivePhysRegs] Use .asMCReg() rather than cast (NFC) (#155084)
Should fix MSVC buildbots: https://lab.llvm.org/buildbot/#/builders/197/builds/8321 https://lab.llvm.org/buildbot/#/builders/211/builds/1549
1 parent 16b044e commit ee8c14b

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)