diff --git a/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp b/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp index ec5d578eb827..64bfcb2a9a9f 100644 --- a/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp +++ b/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp @@ -70,7 +70,7 @@ public: } }; - CVPLatticeVal() : LatticeState(Undefined) {} + CVPLatticeVal() = default; CVPLatticeVal(CVPLatticeStateTy LatticeState) : LatticeState(LatticeState) {} CVPLatticeVal(std::vector &&Functions) : LatticeState(FunctionSet), Functions(std::move(Functions)) { @@ -96,7 +96,7 @@ public: private: /// Holds the state this lattice value is in. - CVPLatticeStateTy LatticeState; + CVPLatticeStateTy LatticeState = Undefined; /// Holds functions indicating the possible targets of call sites. This set /// is empty for lattice values in the undefined, overdefined, and untracked