HomePhabricator

[ObjC] Add NSValue support for objc_boxed_expressions

Description

[ObjC] Add NSValue support for objc_boxed_expressions

Patch extends ObjCBoxedExpr to accept records (structs and unions):

typedef struct attribute((objc_boxable)) _Color {

int r, g, b;

} Color;

Color color;
NSValue *boxedColor = @(color); // [NSValue valueWithBytes:&color objCType:@encode(Color)];

Details

Committed
AlexDenisovJun 25 2015, 10:28 PM
Parents
rL240760: [InterleavedAccess] Fix failures "undefined type 'llvm::raw_ostream'" on…
Branches
Unknown
Tags
Unknown