Fix generation of certain scheduler itineraries.

llvm-svn: 36338
This commit is contained in:
Christopher Lamb 2007-04-22 09:04:24 +00:00
parent a1b07bee6a
commit 8996dce6ec
1 changed files with 2 additions and 1 deletions

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 += ", ";
}
}