summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-08-05 20:03:43 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-08-05 20:03:43 +0000
commit5d14efe279b5db9f4746ff834ab5c70e249d3871 (patch)
treea8a50f86a963b23fe1995a990553f4591012dc7c /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent85e5e28ab4c826593610e25aac7197a35da8244c (diff)
downloadbcm5719-llvm-5d14efe279b5db9f4746ff834ab5c70e249d3871.tar.gz
bcm5719-llvm-5d14efe279b5db9f4746ff834ab5c70e249d3871.zip
Fix MSVC error after r367916
It seems that MSVC sees ambiguity between the operator==()'s where clang doesn't llvm-svn: 367920
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index d7e83286b59..46146bcfaad 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.");
OpenPOWER on IntegriCloud