Add a missing check from r122218.
authorCameron Zwarich <zwarich@apple.com>
Mon, 20 Dec 2010 02:59:51 +0000 (02:59 +0000)
committerCameron Zwarich <zwarich@apple.com>
Mon, 20 Dec 2010 02:59:51 +0000 (02:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122224 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineVerifier.cpp

index d0f251ed63366184a6f0984935c7b1cc984f998a..248bbe1db6ff1fa1ce42281867d6ca6e948d3a48 100644 (file)
@@ -1078,7 +1078,7 @@ void MachineVerifier::verifyLiveIntervals() {
           bool hasDeadDef = false;
           for (MachineInstr::const_mop_iterator MOI = MI->operands_begin(),
                MOE = MI->operands_end(); MOI != MOE; ++MOI) {
-            if (MOI->isReg() && MOI->isDef() && MOI->isDead()) {
+            if (MOI->isReg() && MOI->getReg() == LI.reg && MOI->isDef() && MOI->isDead()) {
               hasDeadDef = true;
               break;
             }