mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Use pop_back_val instead of back followed by pop_back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c95ff3c422
commit
1901925b78
@ -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;) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user