Skip to content

Commit

Permalink
Fix MSVC error after r367916
Browse files Browse the repository at this point in the history
It seems that MSVC sees ambiguity between the operator==()'s where clang
doesn't

llvm-svn: 367920
  • Loading branch information
dsandersllvm committed Aug 5, 2019
1 parent 85e5e28 commit 5d14efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/MachineBasicBlock.cpp
Expand Up @@ -499,7 +499,7 @@ MachineBasicBlock::addLiveIn(MCPhysReg PhysReg, const TargetRegisterClass *RC) {
// Look for an existing copy.
if (LiveIn)
for (;I != E && I->isCopy(); ++I)
if (I->getOperand(1).getReg() == PhysReg) {
if (I->getOperand(1).getReg() == Register(PhysReg)) {
unsigned VirtReg = I->getOperand(0).getReg();
if (!MRI.constrainRegClass(VirtReg, RC))
llvm_unreachable("Incompatible live-in register class.");
Expand Down

0 comments on commit 5d14efe

Please sign in to comment.