[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp

Chris Lattner sabre at nondot.org
Wed Dec 20 11:50:30 PST 2006



Changes in directory llvm/lib/VMCore:

Verifier.cpp updated: 1.176 -> 1.177
---
Log message:

Revert the previous patch which was incorrect.  This unbreaks eon, but rebreaks
invoke-1.ll


---
Diffs of the changes:  (+2 -1)

 Verifier.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.176 llvm/lib/VMCore/Verifier.cpp:1.177
--- llvm/lib/VMCore/Verifier.cpp:1.176	Mon Dec 18 17:40:19 2006
+++ llvm/lib/VMCore/Verifier.cpp	Wed Dec 20 13:50:15 2006
@@ -921,7 +921,8 @@
             // If it is used by something non-phi, then the other case is that
             // 'OpBlock' dominates all of its predecessors other than the
             // invoke.  In this case, the invoke value can still be used.
-            if (!Bad) {
+            if (Bad) {
+              Bad = false;
               for (pred_iterator PI = pred_begin(OpBlock),
                    E = pred_end(OpBlock); PI != E; ++PI) {
                 if (*PI != II->getParent() && !EF->dominates(OpBlock, *PI)) {






More information about the llvm-commits mailing list