Skip to content

Commit 612810e

Browse files
committed
Fix uninitialized variable warnings. NFCI.
1 parent 3c37981 commit 612810e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/SearchableTableEmitter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct GenericEnum {
4444
using Entry = std::pair<StringRef, int64_t>;
4545

4646
std::string Name;
47-
Record *Class;
47+
Record *Class = nullptr;
4848
std::string PreprocessorGuard;
4949
std::vector<std::unique_ptr<Entry>> Entries;
5050
DenseMap<Record *, Entry *> EntryMap;
@@ -63,7 +63,7 @@ struct GenericField {
6363
struct SearchIndex {
6464
std::string Name;
6565
SmallVector<GenericField, 1> Fields;
66-
bool EarlyOut;
66+
bool EarlyOut = false;
6767
};
6868

6969
struct GenericTable {

0 commit comments

Comments
 (0)