diff options
author | Craig Silverstein <csilvers2000@yahoo.com> | 2010-11-16 07:16:25 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers2000@yahoo.com> | 2010-11-16 07:16:25 +0000 |
commit | 9e448da3240813be12b9546cd60e5e755a52dd97 (patch) | |
tree | b83547dc9fd9a316bfc9e16b074e4f9db7bcb943 /clang/test/SemaCXX/copy-initialization.cpp | |
parent | 4098598ca88c61d8c6123cd0f42e03ba57eb7f9f (diff) | |
download | bcm5719-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