mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +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;
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user