diff options
author | Kazu Hirata <kazu@google.com> | 2024-01-12 22:08:28 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2024-01-12 22:08:28 -0800 |
commit | 6bd488dd24cc06daea0d9a9dea0e2843f4c8d38e (patch) | |
tree | c9f89c65a0503b391547b41d92c7d5e85b17bcea /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 51fb76ff1d4a888342c4a406904096b32cc49866 (diff) | |
download | llvm-6bd488dd24cc06daea0d9a9dea0e2843f4c8d38e.zip llvm-6bd488dd24cc06daea0d9a9dea0e2843f4c8d38e.tar.gz llvm-6bd488dd24cc06daea0d9a9dea0e2843f4c8d38e.tar.bz2 |
[CodeGen] Use DenseMap::contains (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index b245abd..9160166 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -730,8 +730,8 @@ public: return; // If binary expression is disqualified, don't do mapping. - if (NestLevel.empty() && MCDCBitmapMap.find(CodeGenFunction::stripCond( - E)) == MCDCBitmapMap.end()) + if (NestLevel.empty() && + !MCDCBitmapMap.contains(CodeGenFunction::stripCond(E))) NotMapped = true; // Push Stmt on 'NestLevel' stack to keep track of nest location. @@ -744,7 +744,7 @@ public: // If the operator itself has an assigned ID, this means it represents a // larger subtree. In this case, pop its ID out of the RHS stack and // assign that ID to its LHS node. Its RHS will receive a new ID. - if (CondIDs.find(CodeGenFunction::stripCond(E)) != CondIDs.end()) { + if (CondIDs.contains(CodeGenFunction::stripCond(E))) { // If Stmt has an ID, assign its ID to LHS CondIDs[CodeGenFunction::stripCond(E->getLHS())] = CondIDs[E]; |