summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-04-04 00:37:38 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-04-04 00:37:38 +0000
commitb85c0caf7df2ba93e68bcc595d53457c0dd613df (patch)
treea08d4e8ed350f7cf894315fbe01e5af90c8e4b38
parent19ea5ae81ad97bba9002c2910afac55154498aa5 (diff)
downloadbcm5719-llvm-b85c0caf7df2ba93e68bcc595d53457c0dd613df.tar.gz
bcm5719-llvm-b85c0caf7df2ba93e68bcc595d53457c0dd613df.zip
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
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 26ae295d5dc..d7e23364ccf 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -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)
OpenPOWER on IntegriCloud