Skip to content

Commit a7633f6

Browse files
committed
Allocate a list node explicitly; ilist no longer does it.
llvm r281184 changed ilist<> to stop allocating nodes implicitly. (cherry picked from commit 5d5be4d)
1 parent ae3db7c commit a7633f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ ArchetypeType *TypeConverter::getExemplarArchetype(ArchetypeType *t) {
11051105

11061106
// Otherwise, use this archetype as the exemplar for future similar
11071107
// archetypes.
1108-
Types.ExemplarArchetypeStorage.push_back({t});
1108+
Types.ExemplarArchetypeStorage.push_back(new ExemplarArchetype(t));
11091109
Types.ExemplarArchetypes.InsertNode(&Types.ExemplarArchetypeStorage.back(),
11101110
insertPos);
11111111
return t;

0 commit comments

Comments
 (0)