From 4cb3eeb832b5fb29a61f2934b3daa5e42a3d6cde Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 18 Jul 2023 08:08:11 -0700 Subject: Simplify Lookup and improve compiler performance. (#2996) * Simplify lookup. * Various bug fixes. * Report type dictionary size in perf benchmark. * Remove type duplication. * increase initial dict size. * Bug fix. * Fix bugs. * Fixup. * Revert type legalization looping. * Fix specialization pass. --------- Co-authored-by: Yong He --- source/slang/slang-mangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-mangle.cpp') diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp index de1b58999..4d94d5283 100644 --- a/source/slang/slang-mangle.cpp +++ b/source/slang/slang-mangle.cpp @@ -424,7 +424,7 @@ namespace Slang // in place for the parent generic declaration, or we don't. auto subst = findInnerMostGenericSubstitution(declRef.getSubst()); - if( subst && subst->genericDecl == parentGenericDeclRef.getDecl() ) + if( subst && subst->getGenericDecl() == parentGenericDeclRef.getDecl()) { // This is the case where we *do* have substitutions. emitRaw(context, "G"); -- cgit v1.2.3