mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
Use pop_back_val instead of back followed by pop_back.
llvm-svn: 122876
This commit is contained in:
parent
4c9ed7d055
commit
a7b9603f24
@ -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