From: Jakub Staszak Date: Mon, 19 Aug 2013 22:47:55 +0000 (+0000) Subject: Use pop_back_val() instead of both back() and pop_back(). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c2d722efbfd4860dcb7a344be2031ec24cb6691f;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/InstCombine/InstCombineWorklist.h b/lib/Transforms/InstCombine/InstCombineWorklist.h index 19959c0dcda..11095585b7b 100644 --- a/lib/Transforms/InstCombine/InstCombineWorklist.h +++ b/lib/Transforms/InstCombine/InstCombineWorklist.h @@ -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; }