mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Property Wrappers] Use autoclosure information from CSApply to compute
`VarDecl::getPropertyWrapperInitValueInterfaceType`.
This commit is contained in:
@@ -852,7 +852,8 @@ void SILGenFunction::emitGeneratorFunction(SILDeclRef function, Expr *value,
|
||||
auto var = cast<VarDecl>(function.getDecl());
|
||||
auto wrappedInfo = var->getPropertyWrapperBackingPropertyInfo();
|
||||
auto param = params->get(0);
|
||||
opaqueValue.emplace(*this, wrappedInfo.underlyingValue,
|
||||
auto *placeholder = wrappedInfo.wrappedValuePlaceholder;
|
||||
opaqueValue.emplace(*this, placeholder->getOpaqueValuePlaceholder(),
|
||||
maybeEmitValueOfLocalVarDecl(param));
|
||||
|
||||
assert(value == wrappedInfo.initializeFromOriginal);
|
||||
|
||||
Reference in New Issue
Block a user