mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 02:56:49 +00:00
[Sema] Avoid repeated hash lookups (NFC) (#122588)
This commit is contained in:
parent
07ff786e39
commit
a56eb7c998
@ -15868,8 +15868,8 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) {
|
||||
llvm::DenseMap<const BlockDecl *, bool> EscapeInfo;
|
||||
|
||||
auto IsOrNestedInEscapingBlock = [&](const BlockDecl *BD) {
|
||||
if (EscapeInfo.count(BD))
|
||||
return EscapeInfo[BD];
|
||||
if (auto It = EscapeInfo.find(BD); It != EscapeInfo.end())
|
||||
return It->second;
|
||||
|
||||
bool R = false;
|
||||
const BlockDecl *CurBD = BD;
|
||||
|
Loading…
x
Reference in New Issue
Block a user