diff options
author | Akshay Khadse <akshayskhadse@gmail.com> | 2023-04-17 16:16:23 +0800 |
---|---|---|
committer | Luo, Yuanke <yuanke.luo@intel.com> | 2023-04-17 16:32:46 +0800 |
commit | 8bf7f86d7966ff835967669fb6bf23897e20b71d (patch) | |
tree | ac732355d5e16c7444bcf1a20c59ed65bcdab7c2 /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | 83ab5708d1d00f4ec2541e960bff3b5c68001c9e (diff) | |
download | llvm-8bf7f86d7966ff835967669fb6bf23897e20b71d.zip llvm-8bf7f86d7966ff835967669fb6bf23897e20b71d.tar.gz llvm-8bf7f86d7966ff835967669fb6bf23897e20b71d.tar.bz2 |
Fix uninitialized pointer members in CodeGen
This change initializes the members TSI, LI, DT, PSI, and ORE pointer feilds of the SelectOptimize class to nullptr.
Reviewed By: LuoYuanke
Differential Revision: https://reviews.llvm.org/D148303
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCSE.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp index cd864402..03e69f8 100644 --- a/llvm/lib/CodeGen/MachineCSE.cpp +++ b/llvm/lib/CodeGen/MachineCSE.cpp @@ -68,12 +68,12 @@ static cl::opt<int> namespace { class MachineCSE : public MachineFunctionPass { - const TargetInstrInfo *TII; - const TargetRegisterInfo *TRI; - AliasAnalysis *AA; - MachineDominatorTree *DT; - MachineRegisterInfo *MRI; - MachineBlockFrequencyInfo *MBFI; + const TargetInstrInfo *TII = nullptr; + const TargetRegisterInfo *TRI = nullptr; + AliasAnalysis *AA = nullptr; + MachineDominatorTree *DT = nullptr; + MachineRegisterInfo *MRI = nullptr; + MachineBlockFrequencyInfo *MBFI = nullptr; public: static char ID; // Pass identification |