projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4894a
)
do not rely on the implicit-dereference semantics of dyn_cast_or_null
author
Gabor Greif
<ggreif@gmail.com>
Sat, 18 Sep 2010 11:55:34 +0000
(11:55 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Sat, 18 Sep 2010 11:55:34 +0000
(11:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114278
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index e8dc5d3a640e62a88b5be23041d46d30405e17f1..fca7bae0ba06232996b300e41b181ef8482e26a8 100644
(file)
--- 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;