mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
correct preconditions for ObjC layout, and write the computed offsets back to global ivar offset variables when present. Swift will use the global variables for accesses to ivars when it can show that their offsets are non-dependent. Fixes a major problem with generic subclasses of ObjC classes whose dynamic layout does not match the layout in their @interface. rdar://19583881 Swift SVN r25536
13 lines
318 B
Objective-C
13 lines
318 B
Objective-C
#ifndef SWIFT_TEST_OBJC_CLASSES_H
|
|
#define SWIFT_TEST_OBJC_CLASSES_H
|
|
|
|
#include <Foundation/NSObject.h>
|
|
|
|
/* This class has instance variables which are not apparent in the
|
|
interface. Subclasses will need to be slid by the ObjC runtime. */
|
|
@interface HasHiddenIvars : NSObject
|
|
@property NSInteger count;
|
|
@end
|
|
|
|
#endif
|