Skip to content

Commit bf3deb1

Browse files
[AST] Avoid repeated hash lookups (NFC) (#110947)
1 parent 133c122 commit bf3deb1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14439,8 +14439,6 @@ bool ASTContext::useAbbreviatedThunkName(GlobalDecl VirtualMethodDecl,
1443914439
Mangler->mangleThunk(Method, Thunk, /* elideOverrideInfo */ false,
1444014440
mangledNameStream);
1444114441

14442-
if (Thunks.find(ElidedName) == Thunks.end())
14443-
Thunks[ElidedName] = {};
1444414442
Thunks[ElidedName].push_back(std::string(MangledName));
1444514443
}
1444614444
}

0 commit comments

Comments
 (0)