@@ -27,20 +27,17 @@ class Operand {
27
27
};
28
28
29
29
Operand ()
30
- : m_kind(Kind::INVALID), m_lblBlock(nullptr ), m_type(Type::INVALID),
31
- m_regOpSrcMod (SrcModifier::NONE) {}
30
+ : m_regOpSrcMod(SrcModifier::NONE) {}
32
31
33
32
// direct destination constructor (for constants etc)
34
33
Operand (DstModifier dstMod, RegName rType, const RegRef ®,
35
- const Region::Horz &rgnHz, Type type)
36
- : m_lblBlock(nullptr ) {
34
+ const Region::Horz &rgnHz, Type type) {
37
35
setDirectDestination (dstMod, rType, reg, rgnHz, type);
38
36
}
39
37
40
38
// direct source constructor (for constants etc)
41
39
Operand (SrcModifier srcMod, RegName rType, const RegRef ®,
42
- const Region &rgn, Type type)
43
- : m_lblBlock(nullptr ) {
40
+ const Region &rgn, Type type) {
44
41
setDirectSource (srcMod, rType, reg, rgn, type);
45
42
}
46
43
@@ -152,7 +149,7 @@ class Operand {
152
149
}
153
150
154
151
private:
155
- Operand::Kind m_kind;
152
+ Operand::Kind m_kind = Kind::INVALID ;
156
153
157
154
// direct/indirect register information
158
155
union {
@@ -183,7 +180,7 @@ class Operand {
183
180
Block *m_lblBlock = nullptr ;
184
181
185
182
// the operand type (e.g. :d, :f, etc...)
186
- Type m_type;
183
+ Type m_type = Type::INVALID ;
187
184
188
185
public:
189
186
// useful constants (reusable operands to streamline codegen)
0 commit comments