Skip to content

Commit

Permalink
Use pop_back_val() instead of both back() and pop_back().
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188723 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jakub Staszak committed Aug 19, 2013
1 parent 8e3367e commit c2d722e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Transforms/InstCombine/InstCombineWorklist.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class LLVM_LIBRARY_VISIBILITY InstCombineWorklist {
}

Instruction *RemoveOne() {
Instruction *I = Worklist.back();
Worklist.pop_back();
Instruction *I = Worklist.pop_back_val();
WorklistMap.erase(I);
return I;
}
Expand Down

0 comments on commit c2d722e

Please sign in to comment.