mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: Optionally use value witness instead of outlined value functions
... if type layout based value witness emission is enabled. rdar://51988441
This commit is contained in:
@@ -197,7 +197,15 @@ bool SILModule::isTypeABIAccessible(SILType type,
|
||||
"unexpected SIL lowered-only type with non-fixed layout");
|
||||
|
||||
// Otherwise, we need to be able to fetch layout-metadata for the type.
|
||||
return isTypeMetadataForLayoutAccessible(*this, type);
|
||||
return isTypeMetadataForLayoutAccessible(type);
|
||||
}
|
||||
|
||||
bool SILModule::isTypeMetadataForLayoutAccessible(SILType type) {
|
||||
if (type.is<ReferenceStorageType>() || type.is<SILFunctionType>() ||
|
||||
type.is<AnyMetatypeType>())
|
||||
return false;
|
||||
|
||||
return ::isTypeMetadataForLayoutAccessible(*this, type);
|
||||
}
|
||||
|
||||
bool AbstractStorageDecl::exportsPropertyDescriptor() const {
|
||||
|
||||
Reference in New Issue
Block a user