diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-04 00:37:38 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-04 00:37:38 +0000 |
commit | b85c0caf7df2ba93e68bcc595d53457c0dd613df (patch) | |
tree | a08d4e8ed350f7cf894315fbe01e5af90c8e4b38 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 19ea5ae81ad97bba9002c2910afac55154498aa5 (diff) | |
download | bcm5719-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
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 3 |
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) |