Skip to content

Commit 0fa818e

Browse files
author
Greg Parker
committed
[runtime] Make ivars in the runtime's ObjC classes private.
1 parent 76fb4a7 commit 0fa818e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/public/runtime/SwiftObject.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
__attribute__((__objc_root_class__))
3535
#endif
3636
SWIFT_RUNTIME_EXPORT @interface SwiftObject<NSObject> {
37+
@private
3738
Class isa;
3839
SWIFT_HEAPOBJECT_NON_OBJC_MEMBERS;
3940
}

stdlib/public/stubs/SwiftNativeNSXXXBase.mm.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ using namespace swift;
5353
SWIFT_RUNTIME_STDLIB_INTERFACE
5454
@interface _SwiftNativeNS${Class}Base : NS${Class}
5555
{
56+
@private
5657
SWIFT_HEAPOBJECT_NON_OBJC_MEMBERS;
5758
}
5859
@end

0 commit comments

Comments
 (0)