Skip to content

Commit c43ee6b

Browse files
committed
Do not write out ObjC property ivar field for static properties
1 parent bf1df4f commit c43ee6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/IRGen/GenClass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,8 +1908,9 @@ namespace {
19081908
else
19091909
(void)0;
19101910

1911-
// If the property has storage, emit the ivar name last.
1912-
if (prop->hasStorage())
1911+
// If the property is an instance property and has storage, emit the ivar
1912+
// name last.
1913+
if (!prop->isStatic() && prop->hasStorage())
19131914
outs << ",V" << prop->getName();
19141915
}
19151916

0 commit comments

Comments
 (0)