aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 23dbce2136..ffcaf42ef9 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -57,7 +57,9 @@ void VariableArrayType::Destroy(ASTContext& C) {
}
void DependentSizedArrayType::Destroy(ASTContext& C) {
- SizeExpr->Destroy(C);
+ // FIXME: Resource contention like in ConstantArrayWithExprType ?
+ // May crash, depending on platform or a particular build.
+ // SizeExpr->Destroy(C);
this->~DependentSizedArrayType();
C.Deallocate(this);
}