diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
commit | a585fa2637774232fd792047191f8358f462230f (patch) | |
tree | 7aa09ae23d6979e3ac49af4eee8a86806241ac52 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | |
parent | 070283825aaff778f7fb527ebc4ef74c84b6c889 (diff) | |
download | llvm-a585fa2637774232fd792047191f8358f462230f.zip llvm-a585fa2637774232fd792047191f8358f462230f.tar.gz llvm-a585fa2637774232fd792047191f8358f462230f.tar.bz2 |
[CodeGen] Use *{Set,Map}::contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp index eec3de9..959fea6 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp @@ -1347,7 +1347,7 @@ void VarLocBasedLDV::removeEntryValue(const MachineInstr &MI, // Try to get non-debug instruction responsible for the DBG_VALUE. const MachineInstr *TransferInst = nullptr; Register Reg = MI.getDebugOperand(0).getReg(); - if (Reg.isValid() && RegSetInstrs.find(Reg) != RegSetInstrs.end()) + if (Reg.isValid() && RegSetInstrs.contains(Reg)) TransferInst = RegSetInstrs.find(Reg)->second; // Case of the parameter's DBG_VALUE at the start of entry MBB. |