forked from OSchip/llvm-project
Use pop_back_val() instead of both back() and pop_back().
llvm-svn: 188723
This commit is contained in:
parent
c6ab1f8bfd
commit
b4eb6adebb
|
@ -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…
Reference in New Issue