[llvm] r188723 - Use pop_back_val() instead of both back() and pop_back().
Jakub Staszak
kubastaszak at gmail.com
Mon Aug 19 15:47:55 PDT 2013
Author: kuba
Date: Mon Aug 19 17:47:55 2013
New Revision: 188723
URL: http://llvm.org/viewvc/llvm-project?rev=188723&view=rev
Log:
Use pop_back_val() instead of both back() and pop_back().
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineWorklist.h
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineWorklist.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineWorklist.h?rev=188723&r1=188722&r2=188723&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineWorklist.h (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineWorklist.h Mon Aug 19 17:47:55 2013
@@ -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;
}
More information about the llvm-commits
mailing list