Make it clear that this code is iterating in reverse order through the array.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2011-08-18 21:27:42 +00:00
parent 857fd8fcda
commit b48ef3a3ec

View File

@ -2596,8 +2596,9 @@ ObjCARCOpt::Visit(Function &F,
Order.push_back(Stack.pop_back_val().first);
}
bool BottomUpNestingDetected = false;
while (!Order.empty()) {
BasicBlock *BB = Order.pop_back_val();
for (SmallVectorImpl<BasicBlock *>::const_reverse_iterator I =
Order.rbegin(), E = Order.rend(); I != E; ++I) {
BasicBlock *BB = *I;
BottomUpNestingDetected |= VisitBottomUp(BB, BBStates, Retains);
}