summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.rst
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-11-08 21:33:15 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-11-08 21:33:15 +0000
commit49370ac7e2eae1e81e073ea20572df87ac614d16 (patch)
treed79cb09e658c67b4f24245c314b158f6485d6403 /llvm/docs/LangRef.rst
parent7adb2fdbbadd0c588a2137c7362a9099574d79ae (diff)
downloadbcm5719-llvm-49370ac7e2eae1e81e073ea20572df87ac614d16.tar.gz
bcm5719-llvm-49370ac7e2eae1e81e073ea20572df87ac614d16.zip
[ObjC] Boxed strings should use the nullability from stringWithUTF8String's return type
Objective-C NSString has a class method stringWithUTF8String that creates a new NSString from a C string. Objective-C box expression @(...) can be used to create an NSString instead of invoking the stringWithUTF8String method directly (The compiler lowers it down to the invocation though). This commit ensures that the type of @(string-value) gets the same nullability attributes as the return type of stringWithUTF8String to ensure that the diagnostics are consistent between the two. rdar://33847186 Differential Revision: https://reviews.llvm.org/D39762 llvm-svn: 317727
Diffstat (limited to 'llvm/docs/LangRef.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud