[clang] [clang][AST] Add 'IgnoreTemplateParmDepth' to structural equivalence cache (PR #115518)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 11 10:34:02 PST 2024
================
@@ -1804,8 +1804,10 @@ struct StructuralEquivalenceCacheTest : public StructuralEquivalenceTest {
}
template <typename NodeType>
- bool isInNonEqCache(std::pair<NodeType *, NodeType *> D) {
- return NonEquivalentDecls.count(D) > 0;
+ bool isInNonEqCache(std::pair<NodeType *, NodeType *> D,
+ bool IgnoreTemplateParmDepth = false) {
+ return NonEquivalentDecls.count(
+ std::make_tuple(D.first, D.second, IgnoreTemplateParmDepth)) > 0;
----------------
NagyDonat wrote:
```suggestion
return NonEquivalentDecls[IgnoreTemplateParmDepth].count(D) > 0;
```
https://github.com/llvm/llvm-project/pull/115518
More information about the cfe-commits
mailing list