@@ -501,13 +501,13 @@ class RuleMatcher : public Matcher {
501501
502502 // / ID for the next instruction variable defined with
503503 // / implicitlyDefineInsnVar()
504- unsigned NextInsnVarID;
504+ unsigned NextInsnVarID = 0 ;
505505
506506 // / ID for the next output instruction allocated with allocateOutputInsnID()
507- unsigned NextOutputInsnID;
507+ unsigned NextOutputInsnID = 0 ;
508508
509509 // / ID for the next temporary register ID allocated with allocateTempRegID()
510- unsigned NextTempRegID;
510+ unsigned NextTempRegID = 0 ;
511511
512512 // / ID for the next recorded type. Starts at -1 and counts down.
513513 TempTypeIdx NextTempTypeIdx = -1 ;
@@ -545,9 +545,7 @@ class RuleMatcher : public Matcher {
545545 StringRef FlagName, GISelFlags FlagBit);
546546
547547public:
548- RuleMatcher (ArrayRef<SMLoc> SrcLoc)
549- : NextInsnVarID(0 ), NextOutputInsnID(0 ), NextTempRegID(0 ), SrcLoc(SrcLoc),
550- RuleID (NextRuleID++) {}
548+ RuleMatcher (ArrayRef<SMLoc> SrcLoc) : SrcLoc(SrcLoc), RuleID(NextRuleID++) {}
551549 RuleMatcher (RuleMatcher &&Other) = default ;
552550 RuleMatcher &operator =(RuleMatcher &&Other) = default ;
553551
@@ -2039,12 +2037,12 @@ class CopyConstantAsImmRenderer : public OperandRenderer {
20392037 unsigned NewInsnID;
20402038 // / The name of the operand.
20412039 const std::string SymbolicName;
2042- bool Signed;
2040+ bool Signed = true ;
20432041
20442042public:
20452043 CopyConstantAsImmRenderer (unsigned NewInsnID, StringRef SymbolicName)
20462044 : OperandRenderer(OR_CopyConstantAsImm), NewInsnID(NewInsnID),
2047- SymbolicName (SymbolicName), Signed( true ) {}
2045+ SymbolicName (SymbolicName) {}
20482046
20492047 static bool classof (const OperandRenderer *R) {
20502048 return R->getKind () == OR_CopyConstantAsImm;
@@ -2359,7 +2357,7 @@ class BuildMIAction : public MatchAction {
23592357private:
23602358 unsigned InsnID;
23612359 const CodeGenInstruction *I;
2362- InstructionMatcher *Matched;
2360+ InstructionMatcher *Matched = nullptr ;
23632361 std::vector<std::unique_ptr<OperandRenderer>> OperandRenderers;
23642362 SmallPtrSet<const Record *, 4 > DeadImplicitDefs;
23652363
@@ -2372,7 +2370,7 @@ class BuildMIAction : public MatchAction {
23722370
23732371public:
23742372 BuildMIAction (unsigned InsnID, const CodeGenInstruction *I)
2375- : MatchAction(AK_BuildMI), InsnID(InsnID), I(I), Matched( nullptr ) {}
2373+ : MatchAction(AK_BuildMI), InsnID(InsnID), I(I) {}
23762374
23772375 static bool classof (const MatchAction *A) {
23782376 return A->getKind () == AK_BuildMI;
0 commit comments