diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-26 21:57:51 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-26 21:57:51 +0000 |
| commit | 4e2ab5550284989ab6a6a6fa41e3ed73f43d041c (patch) | |
| tree | 5b8bdde606763a3d12fecec783e3ab610dfd7ab7 /clang/lib/AST | |
| parent | d98ecd615ff0b0985b7145c56fe92821b70559dd (diff) | |
| download | bcm5719-llvm-4e2ab5550284989ab6a6a6fa41e3ed73f43d041c.tar.gz bcm5719-llvm-4e2ab5550284989ab6a6a6fa41e3ed73f43d041c.zip | |
Add a bit more handling for declarations like "int a[*]".
llvm-svn: 70162
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/Type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp index a94310bbdf3..0331bbf40dd 100644 --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -37,7 +37,8 @@ void Type::Destroy(ASTContext& C) { } void VariableArrayType::Destroy(ASTContext& C) { - SizeExpr->Destroy(C); + if (SizeExpr) + SizeExpr->Destroy(C); this->~VariableArrayType(); C.Deallocate(this); } |

