From 114c9766c2885fc74facf36325a3220cbacc5346 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 3 Jan 2025 14:12:14 -0800 Subject: Create DirectDeclRef when creating Decl to prevent invalid dedup. (#5945) * Create DirectDeclRef when creating Decl to prevent invalid dedup. * Fix test. * fix * update slang-rhi --- source/slang/slang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 38988ca46..5ec199658 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4598,7 +4598,7 @@ void Module::_processFindDeclsExportSymbolsRec(Decl* decl) if (_canExportDeclSymbol(decl->astNodeType)) { // It's a reference to a declaration in another module, so first get the symbol name. - String mangledName = getMangledName(getASTBuilder(), decl); + String mangledName = getMangledName(getCurrentASTBuilder(), decl); Index index = Index(m_mangledExportPool.add(mangledName)); -- cgit v1.2.3