forked from OSchip/llvm-project
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:
parent
19ea5ae81a
commit
b85c0caf7d
|
@ -333,6 +333,9 @@ bool llvm::SimplifyInstructionsInBlock(BasicBlock *BB, const TargetData *TD) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Inst->isTerminator())
|
||||||
|
break;
|
||||||
|
|
||||||
WeakVH BIHandle(BI);
|
WeakVH BIHandle(BI);
|
||||||
MadeChange |= RecursivelyDeleteTriviallyDeadInstructions(Inst);
|
MadeChange |= RecursivelyDeleteTriviallyDeadInstructions(Inst);
|
||||||
if (BIHandle != BI)
|
if (BIHandle != BI)
|
||||||
|
|
Loading…
Reference in New Issue