Revert the previous patch which was incorrect. This unbreaks eon, but rebreaks

invoke-1.ll

llvm-svn: 32718
This commit is contained in:
Chris Lattner 2006-12-20 19:50:15 +00:00
parent 21278e9932
commit 439c25a08a
1 changed files with 2 additions and 1 deletions

View File

@ -921,7 +921,8 @@ void Verifier::visitInstruction(Instruction &I) {
// 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)) {