From a06741b356fac2dcebd75775cce7e5c742f8cf06 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 18 Sep 2010 11:55:34 +0000 Subject: [PATCH] do not rely on the implicit-dereference semantics of dyn_cast_or_null llvm-svn: 114278 --- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e8dc5d3a640e..fca7bae0ba06 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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; -- GitLab