Skip to content

Commit cca01c0

Browse files
committed
CodeGenInstruction - fix uninitialized variable warnings. NFCI.
1 parent 216dab9 commit cca01c0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/utils/TableGen/CodeGenInstruction.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ template <typename T> class ArrayRef;
2929
class CGIOperandList {
3030
public:
3131
class ConstraintInfo {
32-
enum { None, EarlyClobber, Tied } Kind;
33-
unsigned OtherTiedOperand;
32+
enum { None, EarlyClobber, Tied } Kind = None;
33+
unsigned OtherTiedOperand = 0;
34+
3435
public:
35-
ConstraintInfo() : Kind(None) {}
36+
ConstraintInfo() = default;
3637

3738
static ConstraintInfo getEarlyClobber() {
3839
ConstraintInfo I;
@@ -332,9 +333,9 @@ template <typename T> class ArrayRef;
332333
struct ResultOperand {
333334
private:
334335
std::string Name;
335-
Record *R;
336+
Record *R = nullptr;
337+
int64_t Imm = 0;
336338

337-
int64_t Imm;
338339
public:
339340
enum {
340341
K_Record,

0 commit comments

Comments
 (0)