diff --git a/clang/include/clang/AST/APValue.h b/clang/include/clang/AST/APValue.h index 4e22d6c8443c5..286c1a1b0941a 100644 --- a/clang/include/clang/AST/APValue.h +++ b/clang/include/clang/AST/APValue.h @@ -267,9 +267,9 @@ class APValue { }; struct LV; struct Vec { - APValue *Elts; - unsigned NumElts; - Vec() : Elts(nullptr), NumElts(0) {} + APValue *Elts = nullptr; + unsigned NumElts = 0; + Vec() = default; ~Vec() { delete[] Elts; } }; struct Arr {