mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Simplify code by using SmallVector's pop_back_val() instead of
separate back() and pop_back() calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -188,8 +188,7 @@ void llvm::RecursivelyDeleteTriviallyDeadInstructions(Value *V) {
|
||||
DeadInsts.push_back(I);
|
||||
|
||||
while (!DeadInsts.empty()) {
|
||||
I = DeadInsts.back();
|
||||
DeadInsts.pop_back();
|
||||
I = DeadInsts.pop_back_val();
|
||||
|
||||
// Null out all of the instruction's operands to see if any operand becomes
|
||||
// dead as we go.
|
||||
|
Reference in New Issue
Block a user