summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2020-04-13 16:19:16 -0400
committerErik Pilkington <erik.pilkington@gmail.com>2020-04-20 15:22:51 -0400
commit85cca945b4c93ecfd3f3bb7a7b2d5fa4104c3560 (patch)
tree18eef7bc9cd7051cd10da6b772fcf0e120042481 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent6529b0c48aab83bdada1d21a79da13b0971d1aec (diff)
[SemaObjC] Forbid storing an unboxed integer literal in an NSNumber
This fixes a common mistake (the 3 should be @3): NSNumber *n = 3. This extends an existing check for NSString. Also, this only errs if the initializer isn't a null pointer constant, so NSNumber *n = 0; continues to work. rdar://47029572 Differential revision: https://reviews.llvm.org/D78066
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions