Fix uninitialized variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-09 17:02:51 +00:00
parent 3c37981bb3
commit 612810e333
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ struct GenericEnum {
using Entry = std::pair<StringRef, int64_t>; using Entry = std::pair<StringRef, int64_t>;
std::string Name; std::string Name;
Record *Class; Record *Class = nullptr;
std::string PreprocessorGuard; std::string PreprocessorGuard;
std::vector<std::unique_ptr<Entry>> Entries; std::vector<std::unique_ptr<Entry>> Entries;
DenseMap<Record *, Entry *> EntryMap; DenseMap<Record *, Entry *> EntryMap;
@ -63,7 +63,7 @@ struct GenericField {
struct SearchIndex { struct SearchIndex {
std::string Name; std::string Name;
SmallVector<GenericField, 1> Fields; SmallVector<GenericField, 1> Fields;
bool EarlyOut; bool EarlyOut = false;
}; };
struct GenericTable { struct GenericTable {