mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[embedded] Start fencing parts of IRGen that are not compatible with embedded Swift.
This commit is contained in:
@@ -1597,7 +1597,8 @@ const TypeInfo *irgen::getPhysicalStructFieldTypeInfo(IRGenModule &IGM,
|
||||
}
|
||||
|
||||
void IRGenModule::emitStructDecl(StructDecl *st) {
|
||||
if (!IRGen.hasLazyMetadata(st)) {
|
||||
if (!IRGen.hasLazyMetadata(st) &&
|
||||
!st->getASTContext().LangOpts.hasFeature(Feature::Embedded)) {
|
||||
emitStructMetadata(*this, st);
|
||||
emitFieldDescriptor(st);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user