File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -1224,10 +1224,12 @@ void IRGenerator::emitGlobalTopLevel(
1224
1224
}
1225
1225
}
1226
1226
1227
- // Emit property descriptors.
1228
- for (auto &prop : PrimaryIGM->getSILModule ().getPropertyList ()) {
1229
- CurrentIGMPtr IGM = getGenModule (prop.getDecl ()->getInnermostDeclContext ());
1230
- IGM->emitSILProperty (&prop);
1227
+ if (!SIL.getASTContext ().LangOpts .hasFeature (Feature::Embedded)) {
1228
+ // Emit property descriptors.
1229
+ for (auto &prop : PrimaryIGM->getSILModule ().getPropertyList ()) {
1230
+ CurrentIGMPtr IGM = getGenModule (prop.getDecl ()->getInnermostDeclContext ());
1231
+ IGM->emitSILProperty (&prop);
1232
+ }
1231
1233
}
1232
1234
1233
1235
// Emit differentiability witnesses.
Original file line number Diff line number Diff line change @@ -42,4 +42,14 @@ public struct State<Wrapped> {
42
42
}
43
43
}
44
44
45
+ public struct S < T> {
46
+ public private( set) subscript( x: Int ) -> Int {
47
+ get {
48
+ return 27
49
+ }
50
+ mutating set {
51
+ }
52
+ }
53
+ }
54
+
45
55
// CHECK: define {{.*}}@main(
You can’t perform that action at this time.
0 commit comments