mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00: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...) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128802 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
592cf78f84
commit
eeb7f4ce2d
@ -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…
x
Reference in New Issue
Block a user