summaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-08-19 22:47:55 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-08-19 22:47:55 +0000
commitc2d722efbfd4860dcb7a344be2031ec24cb6691f (patch)
tree04964b4dd2eb0aa1d7ace38f2b356bb4c78a3c56 /lib/Transforms/InstCombine
parent8e3367ea36d7b25c79b9d3f14842e8f9c7c5801e (diff)
downloadllvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.tar.gz
llvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.tar.bz2
llvm-c2d722efbfd4860dcb7a344be2031ec24cb6691f.tar.xz
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/Transforms/InstCombine')
-rw-r--r--lib/Transforms/InstCombine/InstCombineWorklist.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineWorklist.h b/lib/Transforms/InstCombine/InstCombineWorklist.h
index 19959c0dcd..11095585b7 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;
}