forked from OSchip/llvm-project
parent
1c980ca5aa
commit
56def258e3
|
@ -490,7 +490,8 @@ bool llvm::SimplifyInstructionsInBlock(BasicBlock *BB,
|
|||
// Iterate over the original function, only adding insts to the worklist
|
||||
// if they actually need to be revisited. This avoids having to pre-init
|
||||
// the worklist with the entire function's worth of instructions.
|
||||
for (BasicBlock::iterator BI = BB->begin(), E = std::prev(BB->end()); BI != E;) {
|
||||
for (BasicBlock::iterator BI = BB->begin(), E = std::prev(BB->end());
|
||||
BI != E;) {
|
||||
assert(!BI->isTerminator());
|
||||
Instruction *I = &*BI;
|
||||
++BI;
|
||||
|
|
Loading…
Reference in New Issue