summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/copy-initialization.cpp
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers2000@yahoo.com>2010-11-16 07:16:25 +0000
committerCraig Silverstein <csilvers2000@yahoo.com>2010-11-16 07:16:25 +0000
commit9e448da3240813be12b9546cd60e5e755a52dd97 (patch)
treeb83547dc9fd9a316bfc9e16b074e4f9db7bcb943 /clang/test/SemaCXX/copy-initialization.cpp
parent4098598ca88c61d8c6123cd0f42e03ba57eb7f9f (diff)
downloadbcm5719-llvm-9e448da3240813be12b9546cd60e5e755a52dd97.tar.gz
bcm5719-llvm-9e448da3240813be12b9546cd60e5e755a52dd97.zip
Have CXXDeleteExpr::getDestroyedType return the actual destroyed type
in more situations. In particular, for code like template<class T> void Fn() { T* x; delete x; } getDestroyedType() will now return T rather than T*, as it would before this change. On the other hand, for code like this: template<class T> void Fn() { T x; delete x; } getDestroyedType() will return an empty QualType(), since it doesn't know what the actual destroyed type would be. Previously, it would return T. OKed by rjmccall llvm-svn: 119334
Diffstat (limited to 'clang/test/SemaCXX/copy-initialization.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud