diff options
author | Kazu Hirata <kazu@google.com> | 2023-06-13 00:24:43 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-06-13 00:24:43 -0700 |
commit | c4933940f76bb775c33b70f4543d30c2e595ef1f (patch) | |
tree | 6d1cc9ec0161d29652909d7f301e21bee6c0f24f /clang/lib/Analysis/ThreadSafetyCommon.cpp | |
parent | 0df7e9f886feef6e002bb41081062364233696be (diff) | |
download | llvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.zip llvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.tar.gz llvm-c4933940f76bb775c33b70f4543d30c2e595ef1f.tar.bz2 |
[clang] Use DenseMapBase::lookup (NFC)
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r-- | clang/lib/Analysis/ThreadSafetyCommon.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp index a771149..b8286ce 100644 --- a/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -69,12 +69,7 @@ static bool isIncompletePhi(const til::SExpr *E) { using CallingContext = SExprBuilder::CallingContext; -til::SExpr *SExprBuilder::lookupStmt(const Stmt *S) { - auto It = SMap.find(S); - if (It != SMap.end()) - return It->second; - return nullptr; -} +til::SExpr *SExprBuilder::lookupStmt(const Stmt *S) { return SMap.lookup(S); } til::SCFG *SExprBuilder::buildCFG(CFGWalker &Walker) { Walker.walk(*this); |