From b4eb6adebbbca0d59ff1c99e9806d7916bad5490 Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Mon, 19 Aug 2013 22:47:55 +0000 Subject: Use pop_back_val() instead of both back() and pop_back(). llvm-svn: 188723 --- llvm/lib/Transforms/InstCombine/InstCombineWorklist.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h b/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h index 19959c0dcda..11095585b7b 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineWorklist.h +++ b/llvm/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; } -- cgit v1.2.3