Skip to content

Commit

Permalink
do not rely on the implicit-dereference semantics of dyn_cast_or_null
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114278 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ggreif committed Sep 18, 2010
1 parent ea4894a commit f097b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/Scalar/LoopStrengthReduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f097b59

Please sign in to comment.