Skip to content

Commit 0f3ac3e

Browse files
committed
[SILGen] Emit property descriptors for static properties.
1 parent 5232bfe commit 0f3ac3e

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
@@ -1247,10 +1247,10 @@ class SILGenType : public TypeMemberVisitor<SILGenType> {
12471247

12481248
void visitVarDecl(VarDecl *vd) {
12491249
// Collect global variables for static properties.
1250-
// FIXME: We can't statically emit a global variable for generic properties.
12511250
if (vd->isStatic() && vd->hasStorage()) {
12521251
emitTypeMemberGlobalVariable(SGM, vd);
12531252
visitAccessors(vd);
1253+
SGM.tryEmitPropertyDescriptor(vd);
12541254
return;
12551255
}
12561256

0 commit comments

Comments
 (0)