diff --git a/llvm/utils/TableGen/SearchableTableEmitter.cpp b/llvm/utils/TableGen/SearchableTableEmitter.cpp index f08f8aa01956..cfe48eb1949d 100644 --- a/llvm/utils/TableGen/SearchableTableEmitter.cpp +++ b/llvm/utils/TableGen/SearchableTableEmitter.cpp @@ -44,7 +44,7 @@ struct GenericEnum { using Entry = std::pair; std::string Name; - Record *Class; + Record *Class = nullptr; std::string PreprocessorGuard; std::vector> Entries; DenseMap EntryMap; @@ -63,7 +63,7 @@ struct GenericField { struct SearchIndex { std::string Name; SmallVector Fields; - bool EarlyOut; + bool EarlyOut = false; }; struct GenericTable {