mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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:
parent
b9707d50f7
commit
8dadf6b13a
@ -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 += ", ";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user