Skip to content

Commit 862fc4b

Browse files
committed
[SILGen] Emit property descriptors for static properties.
1 parent f1e25ea commit 862fc4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILGen/SILGenType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,10 +1257,10 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
12571257

12581258
void visitVarDecl(VarDecl *vd) {
12591259
// Collect global variables for static properties.
1260-
// FIXME: We can't statically emit a global variable for generic properties.
12611260
if (vd->isStatic() && vd->hasStorage()) {
12621261
emitTypeMemberGlobalVariable(SGM, vd);
12631262
visitAccessors(vd);
1263+
SGM.tryEmitPropertyDescriptor(vd);
12641264
return;
12651265
}
12661266

0 commit comments

Comments
 (0)