Merge pull request #85560 from slavapestov/fix-ridiculous-irgen-thing

IRGen: Remove unsafe usage of static variable
This commit is contained in:
Slava Pestov
2025-11-20 02:54:38 -05:00
committed by GitHub
5 changed files with 33 additions and 30 deletions

View File

@@ -465,6 +465,10 @@ class LinkEntity {
// These are both type kinds and protocol-conformance kinds.
// TYPE KINDS: BEGIN {{
/// A SIL differentiability witness. The pointer is a
/// SILDifferentiabilityWitness*.
DifferentiabilityWitness,
/// A lazy protocol witness accessor function. The pointer is a
/// canonical TypeBase*, and the secondary pointer is a
/// ProtocolConformance*.
@@ -475,10 +479,6 @@ class LinkEntity {
/// ProtocolConformance*.
ProtocolWitnessTableLazyCacheVariable,
/// A SIL differentiability witness. The pointer is a
/// SILDifferentiabilityWitness*.
DifferentiabilityWitness,
// Everything following this is a type kind.
/// A value witness for a type.