diff options
Diffstat (limited to 'gnu/llvm/utils/TableGen/CodeGenMapTable.cpp')
-rw-r--r-- | gnu/llvm/utils/TableGen/CodeGenMapTable.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/llvm/utils/TableGen/CodeGenMapTable.cpp b/gnu/llvm/utils/TableGen/CodeGenMapTable.cpp index 527f530da47..8032d7b3ee9 100644 --- a/gnu/llvm/utils/TableGen/CodeGenMapTable.cpp +++ b/gnu/llvm/utils/TableGen/CodeGenMapTable.cpp @@ -542,6 +542,7 @@ static void emitEnums(raw_ostream &OS, RecordKeeper &Records) { for (unsigned j = i+1; j < FieldValues.size(); j++) { if (CurVal == FieldValues[j]) { FieldValues.erase(FieldValues.begin()+j); + --j; } } } |