Skip to content

Commit 53f7bef

Browse files
kazutakahiratavar-const
authored andcommitted
[CodeGen] Call DenseMap::erase directly (NFC) (llvm#135898)
1 parent c4f31e5 commit 53f7bef

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/MachineFunction.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,7 @@ void MachineFunction::eraseAdditionalCallInfo(const MachineInstr *MI) {
946946
if (CSIt != CallSitesInfo.end())
947947
CallSitesInfo.erase(CSIt);
948948

949-
CalledGlobalsMap::iterator CGIt = CalledGlobalsInfo.find(CallMI);
950-
if (CGIt != CalledGlobalsInfo.end())
951-
CalledGlobalsInfo.erase(CGIt);
949+
CalledGlobalsInfo.erase(CallMI);
952950
}
953951

954952
void MachineFunction::copyAdditionalCallInfo(const MachineInstr *Old,

0 commit comments

Comments
 (0)