projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c95ff3c
)
Use pop_back_val instead of back followed by pop_back.
author
Cameron Zwarich
<zwarich@apple.com>
Wed, 5 Jan 2011 16:08:47 +0000
(16:08 +0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Wed, 5 Jan 2011 16:08:47 +0000
(16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122876
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopInstSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopInstSimplify.cpp
b/lib/Transforms/Scalar/LoopInstSimplify.cpp
index 22ec48dde3f5e6955dcfff05047a6bb30c7ef990..da57e6ff4796c9a29283d3287e19d9f14c9fb8e2 100644
(file)
--- a/
lib/Transforms/Scalar/LoopInstSimplify.cpp
+++ b/
lib/Transforms/Scalar/LoopInstSimplify.cpp
@@
-82,8
+82,7
@@
bool LoopInstSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
VisitStack.push_back(L->getHeader());
while (!VisitStack.empty()) {
- BasicBlock *BB = VisitStack.back();
- VisitStack.pop_back();
+ BasicBlock *BB = VisitStack.pop_back_val();
// Simplify instructions in the current basic block.
for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE;) {