TableGen/reginfo potential bug: typo from previous checkin.

llvm-svn: 154452
This commit is contained in:
Andrew Trick 2012-04-10 23:53:32 +00:00
parent a8319713a4
commit 0c60300f39

View File

@ -1222,7 +1222,7 @@ void CodeGenRegBank::computeRegUnitSets() {
assert(Idx < (2*NumRegUnitSubSets) && "runaway unit set inference");
// Compare new sets with all original classes.
for (unsigned SearchIdx = (SearchIdx >= NumRegUnitSubSets) ? 0 : Idx+1;
for (unsigned SearchIdx = (Idx >= NumRegUnitSubSets) ? 0 : Idx+1;
SearchIdx != EndIdx; ++SearchIdx) {
std::set<unsigned> Intersection;
std::set_intersection(RegUnitSets[Idx].Units.begin(),