aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.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/AsmPrinter/CodeViewDebug.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/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 5542c56..fd4ea6e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -3405,7 +3405,7 @@ void CodeViewDebug::emitDebugInfoForGlobal(const CVGlobalVariable &CVGV) {
OS.AddComment("DataOffset");
uint64_t Offset = 0;
- if (CVGlobalVariableOffsets.find(DIGV) != CVGlobalVariableOffsets.end())
+ if (CVGlobalVariableOffsets.contains(DIGV))
// Use the offset seen while collecting info on globals.
Offset = CVGlobalVariableOffsets[DIGV];
OS.emitCOFFSecRel32(GVSym, Offset);