REALLY fix PR378: crash in scalar evolution analysis

llvm-svn: 14275
This commit is contained in:
Chris Lattner 2004-06-20 20:32:16 +00:00
parent ca578611cc
commit baaed7ee90
1 changed files with 1 additions and 0 deletions

View File

@ -376,6 +376,7 @@ static void GroupByComplexity(std::vector<SCEVHandle> &Ops) {
// Move it to immediately after i'th element.
std::swap(Ops[i+1], Ops[j]);
++i; // no need to rescan it.
if (i == e-2) return; // Done!
}
}
}