diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-12-12 04:13:55 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-12-12 04:13:55 +0000 |
commit | 4db8c4483ea7b271bcce3a0312a0ac434313c09b (patch) | |
tree | eb5a0c522e3365671678d0a3c8f1d0c6b8bb6c70 /lib/Sema/SemaExprCXX.cpp | |
parent | e3d250e488241cbfe71a592df4d07d03ad89434a (diff) |
Fix/test decltype dtor calls with invalid base expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index af297840c3..59369d603d 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -266,7 +266,7 @@ ParsedType Sema::getDestructorName(SourceLocation TildeLoc, } ParsedType Sema::getDestructorType(const DeclSpec& DS, ParsedType ObjectType) { - if (DS.getTypeSpecType() == DeclSpec::TST_error) + if (DS.getTypeSpecType() == DeclSpec::TST_error || !ObjectType) return ParsedType(); assert(DS.getTypeSpecType() == DeclSpec::TST_decltype && "only get destructor types from declspecs"); |