1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[MachineOutliner] Fix uninitialized variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-05 15:08:21 +00:00
parent 11150876b9
commit 6ff5dccbdc
2 changed files with 7 additions and 7 deletions

View File

@ -37,10 +37,10 @@ enum InstrType { Legal, LegalTerminator, Illegal, Invisible };
struct Candidate { struct Candidate {
private: private:
/// The start index of this \p Candidate in the instruction list. /// The start index of this \p Candidate in the instruction list.
unsigned StartIdx; unsigned StartIdx = 0;
/// The number of instructions in this \p Candidate. /// The number of instructions in this \p Candidate.
unsigned Len; unsigned Len = 0;
// The first instruction in this \p Candidate. // The first instruction in this \p Candidate.
MachineBasicBlock::iterator FirstInst; MachineBasicBlock::iterator FirstInst;
@ -49,20 +49,20 @@ private:
MachineBasicBlock::iterator LastInst; MachineBasicBlock::iterator LastInst;
// The basic block that contains this Candidate. // The basic block that contains this Candidate.
MachineBasicBlock *MBB; MachineBasicBlock *MBB = nullptr;
/// Cost of calling an outlined function from this point as defined by the /// Cost of calling an outlined function from this point as defined by the
/// target. /// target.
unsigned CallOverhead; unsigned CallOverhead = 0;
public: public:
/// The index of this \p Candidate's \p OutlinedFunction in the list of /// The index of this \p Candidate's \p OutlinedFunction in the list of
/// \p OutlinedFunctions. /// \p OutlinedFunctions.
unsigned FunctionIdx; unsigned FunctionIdx = 0;
/// Identifier denoting the instructions to emit to call an outlined function /// Identifier denoting the instructions to emit to call an outlined function
/// from this point. Defined by the target. /// from this point. Defined by the target.
unsigned CallConstructionID; unsigned CallConstructionID = 0;
/// Contains physical register liveness information for the MBB containing /// Contains physical register liveness information for the MBB containing
/// this \p Candidate. /// this \p Candidate.

View File

@ -252,7 +252,7 @@ private:
/// Ukkonen's algorithm. /// Ukkonen's algorithm.
struct ActiveState { struct ActiveState {
/// The next node to insert at. /// The next node to insert at.
SuffixTreeNode *Node; SuffixTreeNode *Node = nullptr;
/// The index of the first character in the substring currently being added. /// The index of the first character in the substring currently being added.
unsigned Idx = EmptyIdx; unsigned Idx = EmptyIdx;