diff options
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp')
-rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp index 23449585505e..8550230155c8 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp +++ b/llvm/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp @@ -37,25 +37,22 @@ namespace { enum { RegBase, FrameIndexBase - } BaseType; + } BaseType = RegBase; struct { // This is really a union, discriminated by BaseType! SDValue Reg; - int FrameIndex; + int FrameIndex = 0; } Base; - int16_t Disp; - const GlobalValue *GV; - const Constant *CP; - const BlockAddress *BlockAddr; - const char *ES; - int JT; - unsigned Align; // CP alignment. - - MSP430ISelAddressMode() - : BaseType(RegBase), Disp(0), GV(nullptr), CP(nullptr), - BlockAddr(nullptr), ES(nullptr), JT(-1), Align(0) { - } + int16_t Disp = 0; + const GlobalValue *GV = nullptr; + const Constant *CP = nullptr; + const BlockAddress *BlockAddr = nullptr; + const char *ES = nullptr; + int JT = -1; + unsigned Align = 0; // CP alignment. + + MSP430ISelAddressMode() = default; bool hasSymbolicDisplacement() const { return GV != nullptr || CP != nullptr || ES != nullptr || JT != -1; |