projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
315b6f7
)
Add a missing check from r122218.
author
Cameron Zwarich
<zwarich@apple.com>
Mon, 20 Dec 2010 02:59:51 +0000
(
02:59
+0000)
committer
Cameron 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineVerifier.cpp
b/lib/CodeGen/MachineVerifier.cpp
index d0f251ed63366184a6f0984935c7b1cc984f998a..248bbe1db6ff1fa1ce42281867d6ca6e948d3a48 100644
(file)
--- a/
lib/CodeGen/MachineVerifier.cpp
+++ b/
lib/CodeGen/MachineVerifier.cpp
@@
-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;
}