Fix generation of certain scheduler itineraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Christopher Lamb 2007-04-22 09:04:24 +00:00
parent b9707d50f7
commit 8dadf6b13a

View File

@ -218,7 +218,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData,
// For each stage
unsigned N = NStages = StageList.size();
for (unsigned i = 0; i < N; i++) {
for (unsigned i = 0; i < N;) {
// Next stage
Record *Stage = StageList[i];
@ -241,6 +241,7 @@ void SubtargetEmitter::FormItineraryString(Record *ItinData,
// Close off stage
ItinString += " }";
if (++i < N) ItinString += ", ";
}
}