aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitdb36f5db1726a387ac7bbb972b246f84fe2102b4 (patch)
tree80127baa11f20a0ea35766d10184f71f466018a9 /lib/Transforms/Utils/PromoteMemoryToRegister.cpp
parenta51b284651add5bb0e3b2f10980e4d61e1eb10fb (diff)
downloadexternal_llvm-db36f5db1726a387ac7bbb972b246f84fe2102b4.zip
external_llvm-db36f5db1726a387ac7bbb972b246f84fe2102b4.tar.gz
external_llvm-db36f5db1726a387ac7bbb972b246f84fe2102b4.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/PromoteMemoryToRegister.cpp')
-rw-r--r--lib/Transforms/Utils/PromoteMemoryToRegister.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
index 1896be4..b717699 100644
--- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+++ b/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.