From 9db75b23bd703779af7d30b9a1443b052808b691 Mon Sep 17 00:00:00 2001 From: "Luo, Yuanke" Date: Mon, 3 Apr 2023 10:05:37 +0800 Subject: [PATCH] [Coverity] Initialize pointer memeber. --- llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp b/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp index c400ce1..f69feba 100644 --- a/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp +++ b/llvm/lib/CodeGen/MachineLateInstrsCleanup.cpp @@ -39,8 +39,8 @@ STATISTIC(NumRemoved, "Number of redundant instructions removed."); namespace { class MachineLateInstrsCleanup : public MachineFunctionPass { - const TargetRegisterInfo *TRI; - const TargetInstrInfo *TII; + const TargetRegisterInfo *TRI = nullptr; + const TargetInstrInfo *TII = nullptr; // Data structures to map regs to their definitions per MBB. using Reg2DefMap = std::map; -- 2.7.4