llvm.org GIT mirror llvm / 6839a18
[X86] Fix uninitialized members in constructor warnings. NFCI. Initialize all member variables in X86ATTInstPrinter and X86DAGToDAGISel constructors to fix cppcheck warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360047 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 5 months ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2020 public:
2121 X86ATTInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
2222 const MCRegisterInfo &MRI)
23 : X86InstPrinterCommon(MAI, MII, MRI) {}
23 : X86InstPrinterCommon(MAI, MII, MRI), HasCustomInstComment(false) {}
2424
2525 void printRegName(raw_ostream &OS, unsigned RegNo) const override;
2626 void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot,
168168
169169 public:
170170 explicit X86DAGToDAGISel(X86TargetMachine &tm, CodeGenOpt::Level OptLevel)
171 : SelectionDAGISel(tm, OptLevel), OptForSize(false),
172 OptForMinSize(false) {}
171 : SelectionDAGISel(tm, OptLevel), Subtarget(nullptr), OptForSize(false),
172 OptForMinSize(false), IndirectTlsSegRefs(false) {}
173173
174174 StringRef getPassName() const override {
175175 return "X86 DAG->DAG Instruction Selection";