commit | c3bad53c8481884f7511be42204037a93fb1e12c | [log] [tgz] |
---|---|---|
author | Gabor Greif <ggreif@gmail.com> | Sat Sep 18 11:55:34 2010 +0000 |
committer | Gabor Greif <ggreif@gmail.com> | Sat Sep 18 11:55:34 2010 +0000 |
tree | 56d43b3b1187d46ee64fae45462fbe73edfec5e0 | |
parent | bf4c3cfe8f0e09b3663c79bd066f69e18a148df0 [diff] [blame] |
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 e8dc5d3..fca7bae 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -608,7 +608,7 @@ 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;