[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 27 11:29:01 PST 2004
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.82 -> 1.83
---
Log message:
Fix Regression/Assembler/2004-02-27-SelfUseAssertError.ll
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.82 llvm/lib/VMCore/Verifier.cpp:1.83
--- llvm/lib/VMCore/Verifier.cpp:1.82 Tue Feb 24 16:06:07 2004
+++ llvm/lib/VMCore/Verifier.cpp Fri Feb 27 11:28:25 2004
@@ -474,7 +474,8 @@
if (!isa<PHINode>(I)) { // Check that non-phi nodes are not self referential
for (Value::use_iterator UI = I.use_begin(), UE = I.use_end();
UI != UE; ++UI)
- Assert1(*UI != (User*)&I,
+ Assert1(*UI != (User*)&I ||
+ !DS->dominates(&BB->getParent()->getEntryBlock(), BB),
"Only PHI nodes may reference their own value!", &I);
}
More information about the llvm-commits
mailing list