From: Gabor Greif Date: Sat, 18 Sep 2010 11:55:34 +0000 (+0000) Subject: do not rely on the implicit-dereference semantics of dyn_cast_or_null X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f097b59e0e2231d431a6c660c65fa5cae22d9a44;p=oota-llvm.git do not rely on the implicit-dereference semantics of dyn_cast_or_null git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114278 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e8dc5d3a640..fca7bae0ba0 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -608,7 +608,7 @@ DeleteTriviallyDeadInstructions(SmallVectorImpl &DeadInsts) { bool Changed = false; while (!DeadInsts.empty()) { - Instruction *I = dyn_cast_or_null(DeadInsts.pop_back_val()); + Instruction *I = dyn_cast_or_null(&*DeadInsts.pop_back_val()); if (I == 0 || !isInstructionTriviallyDead(I)) continue;