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:
Jakub Staszak 2013-08-19 22:47:55 +00:00
parent 8e3367ea36
commit c2d722efbf

View File

@ -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;
}