diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/include/llvm/ADT/SmallVector.h @@ -1112,7 +1112,7 @@ /// to avoid allocating unnecessary storage. template struct SmallVectorStorage { - alignas(T) char InlineElts[N * sizeof(T)]; + alignas(T) char InlineElts[N * sizeof(T)]{}; }; /// We need the storage to be properly aligned even for small-size of 0 so that