From: Matthias Braun Date: Mon, 28 Aug 2017 20:11:28 +0000 (+0000) Subject: Try to fix compilation problem with libstdc++ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1047945a59e76585fd988c4ded218a91c0793010;p=llvm Try to fix compilation problem with libstdc++ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311918 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp index 425351ccf04..7d42c866ea6 100644 --- a/utils/TableGen/CodeGenRegisters.cpp +++ b/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(SRI.ConcatenationOf.begin(), + SRI.ConcatenationOf.end()), &SRI)); } // Infer even more sub-registers by combining leading super-registers.