summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-doc/mapper-function.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-03-12 23:22:35 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-03-12 23:22:35 +0000
commite078967879a22ffc6ad53c09ca0d9d1ef55b8e2d (patch)
tree5790ddec0631c5a00416f4561598032fab31a562 /clang-tools-extra/test/clang-doc/mapper-function.cpp
parenta7bb0cc09e1f5234698371819a4e6c9226583b1b (diff)
downloadbcm5719-llvm-e078967879a22ffc6ad53c09ca0d9d1ef55b8e2d.tar.gz
bcm5719-llvm-e078967879a22ffc6ad53c09ca0d9d1ef55b8e2d.zip
[analyzer] Destroy and lifetime-extend inlined function return values properly.
This patch uses the newly added CFGCXXRecordTypedCall element at the call site of the caller to construct the return value within the callee directly into the caller's stack frame. This way it is also capable of populating the temporary destructor and lifetime extension maps for the temporary, which allows temporary destructors and lifetime extension to work correctly. This patch does not affect temporaries that were returned from conservatively evaluated functions. Differential Revision: https://reviews.llvm.org/D44124 llvm-svn: 327345
Diffstat (limited to 'clang-tools-extra/test/clang-doc/mapper-function.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud