aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-14 08:07:42 -0700
committerKazu Hirata <kazu@google.com>2023-03-14 08:07:42 -0700
commita585fa2637774232fd792047191f8358f462230f (patch)
tree7aa09ae23d6979e3ac49af4eee8a86806241ac52 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parent070283825aaff778f7fb527ebc4ef74c84b6c889 (diff)
downloadllvm-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.cpp2
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.