Skip to content

Commit a56eb7c

Browse files
[Sema] Avoid repeated hash lookups (NFC) (#122588)
1 parent 07ff786 commit a56eb7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaDecl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15868,8 +15868,8 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) {
1586815868
llvm::DenseMap<const BlockDecl *, bool> EscapeInfo;
1586915869

1587015870
auto IsOrNestedInEscapingBlock = [&](const BlockDecl *BD) {
15871-
if (EscapeInfo.count(BD))
15872-
return EscapeInfo[BD];
15871+
if (auto It = EscapeInfo.find(BD); It != EscapeInfo.end())
15872+
return It->second;
1587315873

1587415874
bool R = false;
1587515875
const BlockDecl *CurBD = BD;

0 commit comments

Comments
 (0)