mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
do not rely on the implicit-dereference semantics of dyn_cast_or_null
llvm-svn: 114278
This commit is contained in:
parent
5348c51fbe
commit
dd1c709af4
@ -608,7 +608,7 @@ DeleteTriviallyDeadInstructions(SmallVectorImpl<WeakVH> &DeadInsts) {
|
|||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
|
|
||||||
while (!DeadInsts.empty()) {
|
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))
|
if (I == 0 || !isInstructionTriviallyDead(I))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user