diff options
author | Richard Trieu <rtrieu@google.com> | 2016-08-05 23:24:47 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2016-08-05 23:24:47 +0000 |
commit | 81b6c561eaeb2a48318523a037e6903d34f5fec3 (patch) | |
tree | 2573ed1a4e12c1561d4a9135555a2065ccbceddf /lldb/www/python-reference.html | |
parent | 9e91c28b7121f726b3ee62bd5d17abb9bfe6841a (diff) | |
download | bcm5719-llvm-81b6c561eaeb2a48318523a037e6903d34f5fec3.tar.gz bcm5719-llvm-81b6c561eaeb2a48318523a037e6903d34f5fec3.zip |
Fix two false positives in -Wreturn-stack-address
If the return type is a pointer and the function returns the reference to a
pointer, don't warn since only the value is returned, not the reference.
If a reference function parameter appears in the reference chain, don't warn
since binding happens at the caller scope, so addresses returned are not
to local stack. This includes default arguments as well.
llvm-svn: 277889
Diffstat (limited to 'lldb/www/python-reference.html')
0 files changed, 0 insertions, 0 deletions