Skip to content

Commit 5d5be4d

Browse files
committed
Allocate a list node explicitly; ilist no longer does it.
llvm r281184 changed ilist<> to stop allocating nodes implicitly.
1 parent e607222 commit 5d5be4d

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
@@ -1098,7 +1098,7 @@ ArchetypeType *TypeConverter::getExemplarArchetype(ArchetypeType *t) {
10981098

10991099
// Otherwise, use this archetype as the exemplar for future similar
11001100
// archetypes.
1101-
Types.ExemplarArchetypeStorage.push_back({t});
1101+
Types.ExemplarArchetypeStorage.push_back(new ExemplarArchetype(t));
11021102
Types.ExemplarArchetypes.InsertNode(&Types.ExemplarArchetypeStorage.back(),
11031103
insertPos);
11041104
return t;

0 commit comments

Comments
 (0)