From 5d14efe279b5db9f4746ff834ab5c70e249d3871 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Mon, 5 Aug 2019 20:03:43 +0000 Subject: [PATCH] Fix MSVC error after r367916 It seems that MSVC sees ambiguity between the operator==()'s where clang doesn't llvm-svn: 367920 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index d7e83286b59e4..46146bcfaad41 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -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.");