Skip to content

Commit 6221f76

Browse files
committed
[GenArchetype] Cache witness table.
A cache lookup is done at the beginning of emitArchetypeWitnessTableRef but the result is never cached.
1 parent 5d684fb commit 6221f76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/GenArchetype.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ llvm::Value *irgen::emitArchetypeWitnessTableRef(IRGenFunction &IGF,
260260
/*request*/ MetadataState::Complete,
261261
nullptr).getMetadata();
262262

263+
IGF.setScopedLocalTypeData(archetype, localDataKind, wtable);
263264
return wtable;
264265
}
265266

0 commit comments

Comments
 (0)