diff options
| -rw-r--r-- | llvm/utils/TableGen/CodeGenRegisters.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenRegisters.cpp b/llvm/utils/TableGen/CodeGenRegisters.cpp index 425351ccf04..7d42c866ea6 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.cpp +++ b/llvm/utils/TableGen/CodeGenRegisters.cpp @@ -1120,7 +1120,9 @@ CodeGenRegBank::CodeGenRegBank(RecordKeeper &Records) { for (CodeGenSubRegIndex &SRI : SubRegIndices) { SRI.computeConcatTransitiveClosure(); if (!SRI.ConcatenationOf.empty()) - ConcatIdx.insert(std::make_pair(SRI.ConcatenationOf, &SRI)); + ConcatIdx.insert(std::make_pair( + SmallVector<CodeGenSubRegIndex*,8>(SRI.ConcatenationOf.begin(), + SRI.ConcatenationOf.end()), &SRI)); } // Infer even more sub-registers by combining leading super-registers. |

