diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-19 22:47:55 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-08-19 22:47:55 +0000 |
commit | c2d722efbfd4860dcb7a344be2031ec24cb6691f (patch) | |
tree | 04964b4dd2eb0aa1d7ace38f2b356bb4c78a3c56 /lib | |
parent | 8e3367ea36d7b25c79b9d3f14842e8f9c7c5801e (diff) | |
download | external_llvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.zip external_llvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.tar.gz external_llvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineWorklist.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineWorklist.h b/lib/Transforms/InstCombine/InstCombineWorklist.h index 19959c0..1109558 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; } |