From 80b8a62fda56179b00fe463ae55d712aa8abefec Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 12 Mar 2009 17:42:45 +0000 Subject: [PATCH] Another missing check for debug intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66800 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 555e30e5f02..e3fa995de8d 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2000,7 +2000,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { --BBI; // Do not delete instructions that can have side effects, like calls // (which may never return) and volatile loads and stores. - if (isa(BBI)) break; + if (isa(BBI) && !isa(BBI)) break; if (StoreInst *SI = dyn_cast(BBI)) if (SI->isVolatile())