From 1256ca04c2064f2ef05625ff93a7954642af84a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 16 Apr 2025 00:36:36 -0700 Subject: [CodeGen] Call DenseMap::erase directly (NFC) (#135898) --- llvm/lib/CodeGen/MachineFunction.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index eb0a167..833b765 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -946,9 +946,7 @@ void MachineFunction::eraseAdditionalCallInfo(const MachineInstr *MI) { if (CSIt != CallSitesInfo.end()) CallSitesInfo.erase(CSIt); - CalledGlobalsMap::iterator CGIt = CalledGlobalsInfo.find(CallMI); - if (CGIt != CalledGlobalsInfo.end()) - CalledGlobalsInfo.erase(CGIt); + CalledGlobalsInfo.erase(CallMI); } void MachineFunction::copyAdditionalCallInfo(const MachineInstr *Old, -- cgit v1.1