diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-01 22:22:50 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-01 22:22:50 +0000 |
| commit | 7451d1cd001d261395f65877d2d03fe5a4969bd9 (patch) | |
| tree | 3e50a3434cb1a276e72a6b60c6cad58598680b9f /llvm/lib/CodeGen/MachineInstr.cpp | |
| parent | e9b5c85041e0ccecf46e241a01f51f3daec8e215 (diff) | |
| download | llvm-7451d1cd001d261395f65877d2d03fe5a4969bd9.zip llvm-7451d1cd001d261395f65877d2d03fe5a4969bd9.tar.gz llvm-7451d1cd001d261395f65877d2d03fe5a4969bd9.tar.bz2 | |
[ARC] When casting from a pointer to an objective-c object with known ownership, if the
cast type has no ownership specified, implicitly "transfer" the ownership of the cast'ed type
to the cast type:
id x;
static_cast<NSString**>(&x); // Casting as (__strong NSString**).
This currently only works for C++ named casts, C casts to follow.
llvm-svn: 134273
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions
