summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-09-18 11:55:34 +0000
committerGabor Greif <ggreif@gmail.com>2010-09-18 11:55:34 +0000
commita06741b356fac2dcebd75775cce7e5c742f8cf06 (patch)
tree2d672940ae763730d4ff68daf8368a1f80aa8918 /llvm/lib
parentaaa22cf1b698da2bb13a4a0dae1194f95c55d480 (diff)
downloadbcm5719-llvm-a06741b356fac2dcebd75775cce7e5c742f8cf06.tar.gz
bcm5719-llvm-a06741b356fac2dcebd75775cce7e5c742f8cf06.zip
do not rely on the implicit-dereference semantics of dyn_cast_or_null
llvm-svn: 114278
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index e8dc5d3a640..fca7bae0ba0 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -608,7 +608,7 @@ DeleteTriviallyDeadInstructions(SmallVectorImpl<WeakVH> &DeadInsts) {
bool Changed = false;
while (!DeadInsts.empty()) {
- Instruction *I = dyn_cast_or_null<Instruction>(DeadInsts.pop_back_val());
+ Instruction *I = dyn_cast_or_null<Instruction>(&*DeadInsts.pop_back_val());
if (I == 0 || !isInstructionTriviallyDead(I))
continue;
OpenPOWER on IntegriCloud