diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-13 14:39:54 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-11-13 14:40:21 +0000 |
commit | 86f07e826f4f119fa2c730e3cc3be65f2f898125 (patch) | |
tree | 9f1368d004a3d61fb50ea3de866da73fa7cbd345 | |
parent | e1670175f2c016e08507939c2cc6ab53857d898c (diff) | |
download | bcm5719-llvm-86f07e826f4f119fa2c730e3cc3be65f2f898125.tar.gz bcm5719-llvm-86f07e826f4f119fa2c730e3cc3be65f2f898125.zip |
PowerPC - fix uninitialized variable warnings. NFCI.
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 63dad686c7d..6feb5ee3373 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -79,7 +79,7 @@ namespace { class PPCAsmPrinter : public AsmPrinter { protected: MapVector<const MCSymbol *, MCSymbol *> TOC; - const PPCSubtarget *Subtarget; + const PPCSubtarget *Subtarget = nullptr; StackMaps SM; public: diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index 4ad6c88233f..9e8906fa2f7 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -138,9 +138,9 @@ namespace { /// class PPCDAGToDAGISel : public SelectionDAGISel { const PPCTargetMachine &TM; - const PPCSubtarget *PPCSubTarget; - const PPCTargetLowering *PPCLowering; - unsigned GlobalBaseReg; + const PPCSubtarget *PPCSubTarget = nullptr; + const PPCTargetLowering *PPCLowering = nullptr; + unsigned GlobalBaseReg = 0; public: explicit PPCDAGToDAGISel(PPCTargetMachine &tm, CodeGenOpt::Level OptLevel) @@ -2385,7 +2385,7 @@ class BitPermutationSelector { SmallVector<ValueBit, 64> Bits; - bool NeedMask; + bool NeedMask = false; SmallVector<unsigned, 64> RLAmt; SmallVector<BitGroup, 16> BitGroups; @@ -2393,7 +2393,7 @@ class BitPermutationSelector { DenseMap<std::pair<SDValue, unsigned>, ValueRotInfo> ValueRots; SmallVector<ValueRotInfo, 16> ValueRotsVec; - SelectionDAG *CurDAG; + SelectionDAG *CurDAG = nullptr; public: BitPermutationSelector(SelectionDAG *DAG) diff --git a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h index dfae19804d9..2b341b5952c 100644 --- a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h +++ b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h @@ -42,7 +42,7 @@ class PPCFunctionInfo : public MachineFunctionInfo { /// MustSaveLR - Indicates whether LR is defined (or clobbered) in the current /// function. This is only valid after the initial scan of the function by /// PEI. - bool MustSaveLR; + bool MustSaveLR = false; /// MustSaveTOC - Indicates that the TOC save needs to be performed in the /// prologue of the function. This is typically the case when there are |