summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-03-06 15:58:34 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-03-06 15:58:34 +0000
commit0e23c61c87551d8d6e796d54f99b654a73c67cff (patch)
tree3b6ec4f86c4ad9e1811aa96c45d099f3532d1dda /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent89e36cc04c692d9fdefbc828c9f50153c0a8c63f (diff)
[Sema][ObjC] Warn about 'performSelector' calls with selectors
that return record or vector types The performSelector family of methods from Foundation use objc_msgSend to dispatch the selector invocations to objects. However, method calls to methods that return record types might have to use the objc_msgSend_stret as the return value won't find into the register. This is also supported by this sentence from performSelector documentation: "The method should not have a significant return value and should take a single argument of type id, or no arguments". This commit adds a new warning that warns when a selector which corresponds to a method that returns a record type is passed into performSelector. rdar://12056271 Differential Revision: https://reviews.llvm.org/D30174 llvm-svn: 297019
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions