File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -2144,3 +2144,21 @@ TypeLayoutCache::getOrCreateResilientEntry(SILType ty) {
2144
2144
resilientEntries.InsertNode (newEntry, insertPos);
2145
2145
return newEntry;
2146
2146
}
2147
+
2148
+ TypeLayoutCache::~TypeLayoutCache () {
2149
+ for (auto &entry : scalarEntries) {
2150
+ entry.~ScalarTypeLayoutEntry ();
2151
+ }
2152
+ for (auto &entry : archetypeEntries) {
2153
+ entry.~ArchetypeLayoutEntry ();
2154
+ }
2155
+ for (auto &entry : alignedGroupEntries) {
2156
+ entry.~AlignedGroupEntry ();
2157
+ }
2158
+ for (auto &entry : enumEntries) {
2159
+ entry.~EnumTypeLayoutEntry ();
2160
+ }
2161
+ for (auto &entry : resilientEntries) {
2162
+ entry.~ResilientTypeLayoutEntry ();
2163
+ }
2164
+ }
Original file line number Diff line number Diff line change @@ -432,8 +432,8 @@ class TypeLayoutCache {
432
432
llvm::FoldingSet<ResilientTypeLayoutEntry> resilientEntries;
433
433
434
434
TypeLayoutEntry emptyEntry;
435
-
436
435
public:
436
+ ~TypeLayoutCache ();
437
437
ScalarTypeLayoutEntry *getOrCreateScalarEntry (const TypeInfo &ti,
438
438
SILType representative);
439
439
You can’t perform that action at this time.
0 commit comments