Use pop_back_val() instead of both back() and pop_back().

llvm-svn: 188723
This commit is contained in:
Jakub Staszak 2013-08-19 22:47:55 +00:00
parent c6ab1f8bfd
commit b4eb6adebb
1 changed files with 1 additions and 2 deletions

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