From 00aa62550cb304b67c18988d8ff8ee890f0e379a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 22 Oct 2025 15:16:48 -0700 Subject: [PATCH] [ADT] Use default member initialization in IndexedMap (NFC) --- llvm/include/llvm/ADT/IndexedMap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/IndexedMap.h b/llvm/include/llvm/ADT/IndexedMap.h index 638fe14bfe797..55935a7afdab4 100644 --- a/llvm/include/llvm/ADT/IndexedMap.h +++ b/llvm/include/llvm/ADT/IndexedMap.h @@ -44,11 +44,11 @@ class IndexedMap { using StorageT = SmallVector; StorageT storage_; - T nullVal_; + T nullVal_ = T(); ToIndexT toIndex_; public: - IndexedMap() : nullVal_(T()) {} + IndexedMap() = default; explicit IndexedMap(const T &val) : nullVal_(val) {}