[llvm-commits] [llvm] r66800 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Dale Johannesen
dalej at apple.com
Thu Mar 12 10:42:46 PDT 2009
Author: johannes
Date: Thu Mar 12 12:42:45 2009
New Revision: 66800
URL: http://llvm.org/viewvc/llvm-project?rev=66800&view=rev
Log:
Another missing check for debug intrinsics.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=66800&r1=66799&r2=66800&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Thu Mar 12 12:42:45 2009
@@ -2000,7 +2000,7 @@
--BBI;
// Do not delete instructions that can have side effects, like calls
// (which may never return) and volatile loads and stores.
- if (isa<CallInst>(BBI)) break;
+ if (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI)) break;
if (StoreInst *SI = dyn_cast<StoreInst>(BBI))
if (SI->isVolatile())
More information about the llvm-commits
mailing list