commit | f91f5c8a66ffd812f61819836529f8ad437f7e2b | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Sun Apr 26 21:57:51 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Sun Apr 26 21:57:51 2009 +0000 |
tree | 1c409fa493e1bda75035839f8b3a64fdffb0d570 | |
parent | de1b60a9868f80f0872ed05d78df3b40a10ba5ca [diff] [blame] |
Add a bit more handling for declarations like "int a[*]". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70162 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index a94310b..0331bbf 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp
@@ -37,7 +37,8 @@ } void VariableArrayType::Destroy(ASTContext& C) { - SizeExpr->Destroy(C); + if (SizeExpr) + SizeExpr->Destroy(C); this->~VariableArrayType(); C.Deallocate(this); }