summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-30 12:32:51 -0800
committerKazu Hirata <kazu@google.com>2022-01-30 12:32:51 -0800
commit2bea207d266534a34cb9587bfbebef7e0662f0d6 (patch)
tree0d4aaf857fb3330dd455119b23e7fa740e0e20e0 /llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
parent156f83adc2af453009a3d5fb56c140d8255892f1 (diff)
[CodeGen] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleSlotTracker.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleSlotTracker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp b/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
index e4da179efcc4..aa63411df965 100644
--- a/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
+++ b/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
@@ -66,8 +66,7 @@ MachineModuleSlotTracker::MachineModuleSlotTracker(
const MachineFunction *MF, bool ShouldInitializeAllMetadata)
: ModuleSlotTracker(MF->getFunction().getParent(),
ShouldInitializeAllMetadata),
- TheFunction(MF->getFunction()), TheMMI(MF->getMMI()), MDNStartSlot(0),
- MDNEndSlot(0) {
+ TheFunction(MF->getFunction()), TheMMI(MF->getMMI()) {
setProcessHook([this](AbstractSlotTrackerStorage *AST, const Module *M,
bool ShouldInitializeAllMetadata) {
this->processMachineModule(AST, M, ShouldInitializeAllMetadata);