From d1c135c6e69ae081ebffb5e73dc0aa10033094c0 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Fri, 13 Mar 2009 19:23:20 +0000 Subject: [PATCH] One more place where debug info affects codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66930 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b2a68641940..44d85e706c6 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -11144,7 +11144,8 @@ static bool isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom) { // If we see a free or a call (which might do a free) the pointer could be // marked invalid. - if (isa(BBI) || isa(BBI)) + if (isa(BBI) || + (isa(BBI) && !isa(BBI))) return false; if (LoadInst *LI = dyn_cast(BBI)) {