summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-08-29 01:11:59 +0000
committerJordan Rose <jordan_rose@apple.com>2012-08-29 01:11:59 +0000
commit2c625dd6f98808ef0493b22063d1c3824deca02a (patch)
tree698889478162f6c29008695eaa62546afaf2db11 /llvm/test/Object
parentdbbff7899d7122d95d7470a8f613e22845042ffb (diff)
downloadbcm5719-llvm-2c625dd6f98808ef0493b22063d1c3824deca02a.tar.gz
bcm5719-llvm-2c625dd6f98808ef0493b22063d1c3824deca02a.zip
[analyzer] C++ objects returned on the stack may be wrapped in ExprWithCleanups.
In C++, objects being returned on the stack are actually copy-constructed into the return value. That means that when a temporary is returned, it still has to be destroyed, i.e. the returned expression will be wrapped in an ExprWithCleanups node. Our "returning stack memory" checker needs to look through this node to see if we really are returning an object by value. PR13722 llvm-svn: 162817
Diffstat (limited to 'llvm/test/Object')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud