diff options
author | Craig Silverstein <csilvers2000@yahoo.com> | 2010-10-20 00:38:15 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers2000@yahoo.com> | 2010-10-20 00:38:15 +0000 |
commit | 20f7ab72b1043fa288c5471dc846581d3a33d9ea (patch) | |
tree | 94c842b99d34937173a3efc9f7e92b523b107024 /lldb/source/API/SBThread.cpp | |
parent | a94cc6dfe8bf0c561677b17cf5f6ab0dc3382300 (diff) | |
download | bcm5719-llvm-20f7ab72b1043fa288c5471dc846581d3a33d9ea.tar.gz bcm5719-llvm-20f7ab72b1043fa288c5471dc846581d3a33d9ea.zip |
The type-to-delete may not be a pointer if it's a dependent type.
Here's example code:
---
template<class T> class MyClass {
struct S { };
S* NewS() { return new S; }
void DeleteS() { delete NewS(); }
};
---
CXXDeleteExpr::getDestroyedType() on the 'delete NewS()' expression
would crash before this change. Now it returns a dependent type
object. Solution suggested by dgregor.
llvm-svn: 116891
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
0 files changed, 0 insertions, 0 deletions