mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
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
8bfe1d2deb
commit
f739e21880
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user