aboutsummaryrefslogtreecommitdiffstats
path: root/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
commite9d87f49063cb1bd213d8e9c339b9b63393cc2d9 (patch)
tree80127baa11f20a0ea35766d10184f71f466018a9 /lib/Transforms/Utils/Local.cpp
parent0ec4146db70916c31281e091bb3b447aab497246 (diff)
downloadexternal_llvm-e9d87f49063cb1bd213d8e9c339b9b63393cc2d9.zip
external_llvm-e9d87f49063cb1bd213d8e9c339b9b63393cc2d9.tar.gz
external_llvm-e9d87f49063cb1bd213d8e9c339b9b63393cc2d9.tar.bz2
Simplify code by using SmallVector's pop_back_val() instead of
separate back() and pop_back() calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 4f2bb1e..94483b8 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/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.