Skip to content

Commit b4eb6ad

Browse files
author
Jakub Staszak
committed
Use pop_back_val() instead of both back() and pop_back().
llvm-svn: 188723
1 parent c6ab1f8 commit b4eb6ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineWorklist.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ class LLVM_LIBRARY_VISIBILITY InstCombineWorklist {
7474
}
7575

7676
Instruction *RemoveOne() {
77-
Instruction *I = Worklist.back();
78-
Worklist.pop_back();
77+
Instruction *I = Worklist.pop_back_val();
7978
WorklistMap.erase(I);
8079
return I;
8180
}

0 commit comments

Comments
 (0)