diff options
author | Kazu Hirata <kazu@google.com> | 2025-04-16 00:36:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 00:36:36 -0700 |
commit | 1256ca04c2064f2ef05625ff93a7954642af84a1 (patch) | |
tree | 3e66e9aa4427933c5f13f54147120fe8ed22d499 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 3d97d71e66036f51cf0b45cc7d5f3a0a14192eb4 (diff) | |
download | llvm-1256ca04c2064f2ef05625ff93a7954642af84a1.zip llvm-1256ca04c2064f2ef05625ff93a7954642af84a1.tar.gz llvm-1256ca04c2064f2ef05625ff93a7954642af84a1.tar.bz2 |
[CodeGen] Call DenseMap::erase directly (NFC) (#135898)
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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, |