Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2010-12-15 18:07:48 +00:00
parent 697483addf
commit 6203295473

View File

@ -339,7 +339,7 @@ bool SplitAnalysis::isBypassLoop(const MachineLoop *Loop) {
/// loops whose parent is not a bypass loop.
void SplitAnalysis::getBypassLoops(LoopPtrSet &BypassLoops) {
SmallVector<MachineLoop*, 8> Todo(loops_.begin(), loops_.end());
while (!Todo.empty) {
while (!Todo.empty()) {
MachineLoop *Loop = Todo.pop_back_val();
if (!usingLoops_.count(Loop)) {
// This is either a bypass loop or completely irrelevant.