File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -5021,27 +5021,6 @@ namespace {
5021
5021
}
5022
5022
result->setSuperclass (superclassType);
5023
5023
5024
- // Mark the class as runtime-only if it is named 'OS_object', even
5025
- // if it doesn't have the runtime-only Clang attribute. This is a
5026
- // targeted fix allowing IRGen to emit convenience initializers
5027
- // correctly.
5028
- //
5029
- // FIXME: Remove this once SILGen gets proper support for factory
5030
- // initializers.
5031
- if (decl->getName () == " OS_object" ||
5032
- decl->getName () == " OS_os_log" ) {
5033
- result->setForeignClassKind (ClassDecl::ForeignKind::RuntimeOnly);
5034
- }
5035
-
5036
- // If the superclass is runtime-only, our class is also. This only
5037
- // matters in the case above.
5038
- if (superclassType) {
5039
- auto superclassDecl = cast<ClassDecl>(superclassType->getAnyNominal ());
5040
- auto kind = superclassDecl->getForeignClassKind ();
5041
- if (kind != ClassDecl::ForeignKind::Normal)
5042
- result->setForeignClassKind (kind);
5043
- }
5044
-
5045
5024
// Import protocols this class conforms to.
5046
5025
importObjCProtocols (result, decl->getReferencedProtocols (),
5047
5026
inheritedTypes);
Original file line number Diff line number Diff line change @@ -1387,7 +1387,8 @@ BraceStmt *swift::applyFunctionBuilderTransform(
1387
1387
captured.first , captured.second )));
1388
1388
}
1389
1389
1390
- // / Produce any additional syntactic diagnostics for the body of a
1390
+ // / Produce any additional syntactic diagnostics for the body of a function
1391
+ // / that had a function builder applied.
1391
1392
static void performAddOnDiagnostics (BraceStmt *stmt, DeclContext *dc) {
1392
1393
class AddOnDiagnosticWalker : public ASTWalker {
1393
1394
SmallVector<DeclContext *, 4 > dcStack;
You can’t perform that action at this time.
0 commit comments