[llvm] r311918 - Try to fix compilation problem with libstdc++
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 13:11:28 PDT 2017
Author: matze
Date: Mon Aug 28 13:11:28 2017
New Revision: 311918
URL: http://llvm.org/viewvc/llvm-project?rev=311918&view=rev
Log:
Try to fix compilation problem with libstdc++
Modified:
llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenRegisters.cpp?rev=311918&r1=311917&r2=311918&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenRegisters.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenRegisters.cpp Mon Aug 28 13:11:28 2017
@@ -1120,7 +1120,9 @@ CodeGenRegBank::CodeGenRegBank(RecordKee
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.
More information about the llvm-commits
mailing list