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/AsmPrinter/CodeViewDebug.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/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
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); |