diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-09-18 11:55:34 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-09-18 11:55:34 +0000 |
commit | f097b59e0e2231d431a6c660c65fa5cae22d9a44 (patch) | |
tree | 56d43b3b1187d46ee64fae45462fbe73edfec5e0 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | ea4894a7fcfb8946d1f7b1301aef98f7f6c9f251 (diff) |
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
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e8dc5d3a64..fca7bae0ba 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/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; |