mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Allow static stored properties in fully-concrete extensions of generic types.
There's no need for per-instantiation storage in this case, so we can relax the implementation limitation for them.
This commit is contained in:
@@ -594,7 +594,8 @@ void SILGenModule::preEmitFunction(SILDeclRef constant,
|
||||
|
||||
assert(F->empty() && "already emitted function?!");
|
||||
|
||||
F->setGenericEnvironment(Types.getConstantInfo(constant).GenericEnv);
|
||||
if (F->getLoweredFunctionType()->isPolymorphic())
|
||||
F->setGenericEnvironment(Types.getConstantInfo(constant).GenericEnv);
|
||||
|
||||
// Create a debug scope for the function using astNode as source location.
|
||||
F->setDebugScope(new (M) SILDebugScope(Loc, F));
|
||||
|
||||
Reference in New Issue
Block a user