[PATCH] D148312: Fix uninitialized pointer members in Target/X86
Akshay Khadse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 21:51:50 PDT 2023
akshaykhadse updated this revision to Diff 513841.
akshaykhadse added a comment.
Add other related files
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148312/new/
https://reviews.llvm.org/D148312
Files:
llvm/lib/Target/X86/X86FixupBWInsts.cpp
llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
llvm/lib/Target/X86/X86PartialReduction.cpp
llvm/lib/Target/X86/X86PreTileConfig.cpp
Index: llvm/lib/Target/X86/X86PreTileConfig.cpp
===================================================================
--- llvm/lib/Target/X86/X86PreTileConfig.cpp
+++ llvm/lib/Target/X86/X86PreTileConfig.cpp
@@ -98,8 +98,8 @@
};
class X86PreTileConfig : public MachineFunctionPass {
- MachineRegisterInfo *MRI;
- const MachineLoopInfo *MLI;
+ MachineRegisterInfo *MRI = nullptr;
+ const MachineLoopInfo *MLI = nullptr;
SmallSet<MachineInstr *, 8> DefVisited;
DenseMap<MachineBasicBlock *, BBInfo> BBVisitedInfo;
DenseMap<MachineBasicBlock *, SmallVector<MIRef, 8>> ShapeBBs;
Index: llvm/lib/Target/X86/X86PartialReduction.cpp
===================================================================
--- llvm/lib/Target/X86/X86PartialReduction.cpp
+++ llvm/lib/Target/X86/X86PartialReduction.cpp
@@ -33,8 +33,8 @@
namespace {
class X86PartialReduction : public FunctionPass {
- const DataLayout *DL;
- const X86Subtarget *ST;
+ const DataLayout *DL = nullptr;
+ const X86Subtarget *ST = nullptr;
public:
static char ID; // Pass identification, replacement for typeid.
Index: llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
===================================================================
--- llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
+++ llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
@@ -154,9 +154,9 @@
using EdgeSet = MachineGadgetGraph::EdgeSet;
using NodeSet = MachineGadgetGraph::NodeSet;
- const X86Subtarget *STI;
- const TargetInstrInfo *TII;
- const TargetRegisterInfo *TRI;
+ const X86Subtarget *STI = nullptr;
+ const TargetInstrInfo *TII = nullptr;
+ const TargetRegisterInfo *TRI = nullptr;
std::unique_ptr<MachineGadgetGraph>
getGadgetGraph(MachineFunction &MF, const MachineLoopInfo &MLI,
Index: llvm/lib/Target/X86/X86FixupBWInsts.cpp
===================================================================
--- llvm/lib/Target/X86/X86FixupBWInsts.cpp
+++ llvm/lib/Target/X86/X86FixupBWInsts.cpp
@@ -148,8 +148,8 @@
/// Register Liveness information after the current instruction.
LivePhysRegs LiveRegs;
- ProfileSummaryInfo *PSI;
- MachineBlockFrequencyInfo *MBFI;
+ ProfileSummaryInfo *PSI = nullptr;
+ MachineBlockFrequencyInfo *MBFI = nullptr;
};
char FixupBWInstPass::ID = 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148312.513841.patch
Type: text/x-patch
Size: 2298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230415/280ce3ba/attachment.bin>
More information about the llvm-commits
mailing list