mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Use pop_back_val() instead of both back() and pop_back().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188723 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e3367ea36
commit
c2d722efbf
@ -74,8 +74,7 @@ public:
|
||||
}
|
||||
|
||||
Instruction *RemoveOne() {
|
||||
Instruction *I = Worklist.back();
|
||||
Worklist.pop_back();
|
||||
Instruction *I = Worklist.pop_back_val();
|
||||
WorklistMap.erase(I);
|
||||
return I;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user