aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-18 12:17:09 -0700
committerKazu Hirata <kazu@google.com>2022-06-18 12:17:09 -0700
commiteb15c80c89a5adecdb4865f01f7a589738c82a5d (patch)
tree719c3ac02a4b9566fa2333573adf0d810d1a3143 /llvm/lib
parent47b39c51572f9515ea5df2500aa9be5e7512b55e (diff)
downloadllvm-eb15c80c89a5adecdb4865f01f7a589738c82a5d.zip
llvm-eb15c80c89a5adecdb4865f01f7a589738c82a5d.tar.gz
llvm-eb15c80c89a5adecdb4865f01f7a589738c82a5d.tar.bz2
[IPO] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/IPO/CalledValuePropagation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp b/llvm/lib/Transforms/IPO/CalledValuePropagation.cpp
index ec5d578..64bfcb2 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<Function *> &&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