summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.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/PromoteMemoryToRegister.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/PromoteMemoryToRegister.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
index 1896be45ede..b717699b7e0 100644
--- a/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+++ b/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
@@ -616,8 +616,7 @@ ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
// Now that we have a set of blocks where the phi is live-in, recursively add
// their predecessors until we find the full region the value is live.
while (!LiveInBlockWorklist.empty()) {
- BasicBlock *BB = LiveInBlockWorklist.back();
- LiveInBlockWorklist.pop_back();
+ BasicBlock *BB = LiveInBlockWorklist.pop_back_val();
// The block really is live in here, insert it into the set. If already in
// the set, then it has already been processed.
OpenPOWER on IntegriCloud