diff options
| author | Yong He <yonghe@outlook.com> | 2023-08-09 09:11:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 09:11:23 -0700 |
| commit | c4615fe0ae7e1849b23e9a96d1453794b0b40e90 (patch) | |
| tree | 0d8d4eed0c90df9664420737d60749f391c11ffb /source/slang/slang-ast-base.cpp | |
| parent | 793a29afc9539f893883b5ad8d88639d63f401e0 (diff) | |
Clean up and improve Val deduplication performance. (#3069)
* Clean up and improve Val deuplication performance.
* Fix.
* Fix.
* Fix.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-base.cpp')
| -rw-r--r-- | source/slang/slang-ast-base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ast-base.cpp b/source/slang/slang-ast-base.cpp index 0ad2bb101..5b4a4ea0c 100644 --- a/source/slang/slang-ast-base.cpp +++ b/source/slang/slang-ast-base.cpp @@ -25,7 +25,7 @@ DeclRefBase* Decl::getDefaultDeclRef() auto astBuilder = getCurrentASTBuilder(); if (astBuilder->getEpoch() != m_defaultDeclRefEpoch || !m_defaultDeclRef) { - m_defaultDeclRef = astBuilder->getDirectDeclRef(this); + m_defaultDeclRef = astBuilder->getOrCreate<DirectDeclRef>(this); m_defaultDeclRefEpoch = astBuilder->getEpoch(); } return m_defaultDeclRef; |
