summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-01-03 14:12:14 -0800
committerGitHub <noreply@github.com>2025-01-03 14:12:14 -0800
commit114c9766c2885fc74facf36325a3220cbacc5346 (patch)
tree2e7c47843934590a30bd7138515a7054846678b4 /source/slang/slang.cpp
parent5df3a74af9beb1e31fd1ed7975b4d9949b923126 (diff)
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
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp2
1 files changed, 1 insertions, 1 deletions
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));