Skip to content

Commit eb15c80

Browse files
[IPO] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
1 parent 47b39c5 commit eb15c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/CalledValuePropagation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class CVPLatticeVal {
7070
}
7171
};
7272

73-
CVPLatticeVal() : LatticeState(Undefined) {}
73+
CVPLatticeVal() = default;
7474
CVPLatticeVal(CVPLatticeStateTy LatticeState) : LatticeState(LatticeState) {}
7575
CVPLatticeVal(std::vector<Function *> &&Functions)
7676
: LatticeState(FunctionSet), Functions(std::move(Functions)) {
@@ -96,7 +96,7 @@ class CVPLatticeVal {
9696

9797
private:
9898
/// Holds the state this lattice value is in.
99-
CVPLatticeStateTy LatticeState;
99+
CVPLatticeStateTy LatticeState = Undefined;
100100

101101
/// Holds functions indicating the possible targets of call sites. This set
102102
/// is empty for lattice values in the undefined, overdefined, and untracked

0 commit comments

Comments
 (0)