summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-06 17:22:41 +0000
committerDan Gohman <gohman@apple.com>2009-05-06 17:22:41 +0000
commit9a6fef0a52e705f6ac0c4b181adb1b1948add802 (patch)
treefe20584b6777290b532b1c68b12f9350a65658e4 /llvm/lib/Transforms/Utils/Local.cpp
parent164ac10f82c9e61189875afa051e4f9d48378a45 (diff)
downloadbcm5719-llvm-9a6fef0a52e705f6ac0c4b181adb1b1948add802.tar.gz
bcm5719-llvm-9a6fef0a52e705f6ac0c4b181adb1b1948add802.zip
Simplify code by using SmallVector's pop_back_val() instead of
separate back() and pop_back() calls. llvm-svn: 71089
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 4f2bb1e3de7..94483b816e3 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -188,8 +188,7 @@ void llvm::RecursivelyDeleteTriviallyDeadInstructions(Value *V) {
DeadInsts.push_back(I);
while (!DeadInsts.empty()) {
- I = DeadInsts.back();
- DeadInsts.pop_back();
+ I = DeadInsts.pop_back_val();
// Null out all of the instruction's operands to see if any operand becomes
// dead as we go.
OpenPOWER on IntegriCloud