[clang] [clang] Avoid invalidating specialization lookup (PR #196533)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 13 00:57:07 PDT 2026
================
@@ -8745,9 +8732,13 @@ bool ASTReader::LoadExternalSpecializationsImpl(
Deserializing LookupResults(this);
auto HashValue = StableHashForTemplateArguments(TemplateArgs);
- // Get Decl may violate the iterator from SpecLookups
+ auto It = SpecLookups.find(D);
----------------
mzukovec wrote:
Sure thing. Would that be acceptable? I'm not that familiar with the guidelines here. I can patch those two failing tests if that sounds good for you and you approve this approach.
https://github.com/llvm/llvm-project/pull/196533
More information about the cfe-commits
mailing list