[llvm-commits] [llvm] r128802 - /llvm/trunk/lib/Transforms/Utils/Local.cpp
Eli Friedman
eli.friedman at gmail.com
Sun Apr 3 17:37:38 PDT 2011
Author: efriedma
Date: Sun Apr 3 19:37:38 2011
New Revision: 128802
URL: http://llvm.org/viewvc/llvm-project?rev=128802&view=rev
Log:
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...)
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=128802&r1=128801&r2=128802&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Sun Apr 3 19:37:38 2011
@@ -333,6 +333,9 @@
continue;
}
+ if (Inst->isTerminator())
+ break;
+
WeakVH BIHandle(BI);
MadeChange |= RecursivelyDeleteTriviallyDeadInstructions(Inst);
if (BIHandle != BI)
More information about the llvm-commits
mailing list