Attempt to fix breakage from r128782 reported by Francois Pichet on

llvm-commits.  (Not sure why it only breaks on Windows; maybe it has
something to do with the iterator representation...)

llvm-svn: 128802
This commit is contained in:
Eli Friedman 2011-04-04 00:37:38 +00:00
parent 19ea5ae81a
commit b85c0caf7d
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ bool llvm::SimplifyInstructionsInBlock(BasicBlock *BB, const TargetData *TD) {
continue;
}
if (Inst->isTerminator())
break;
WeakVH BIHandle(BI);
MadeChange |= RecursivelyDeleteTriviallyDeadInstructions(Inst);
if (BIHandle != BI)