summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-shader.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-26 08:32:24 -0700
committerGitHub <noreply@github.com>2022-10-26 08:32:24 -0700
commit939be44ca23476e622dfb24a592383fe2a1da61f (patch)
tree7f45645897fe5735d58a7687290552d479e4d6fc /source/slang/slang-check-shader.cpp
parent4fc34b18da2f83ee6b4f094067503a66cab3d0b5 (diff)
Auto synthesis of Differential type (#2466)
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
-rw-r--r--source/slang/slang-check-shader.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp
index d7200d47c..a84e40768 100644
--- a/source/slang/slang-check-shader.cpp
+++ b/source/slang/slang-check-shader.cpp
@@ -236,13 +236,10 @@ namespace Slang
{
auto translationUnitSyntax = translationUnit->getModuleDecl();
- // Make sure we've got a query-able member dictionary
- buildMemberDictionary(translationUnitSyntax);
-
// We will look up any global-scope declarations in the translation
// unit that match the name of our entry point.
Decl* firstDeclWithName = nullptr;
- if (!translationUnitSyntax->memberDictionary.TryGetValue(name, firstDeclWithName))
+ if (!translationUnitSyntax->getMemberDictionary().TryGetValue(name, firstDeclWithName))
{
// If there doesn't appear to be any such declaration, then we are done.
@@ -454,13 +451,10 @@ namespace Slang
auto entryPointName = entryPointReq->getName();
- // Make sure we've got a query-able member dictionary
- buildMemberDictionary(translationUnitSyntax);
-
// We will look up any global-scope declarations in the translation
// unit that match the name of our entry point.
Decl* firstDeclWithName = nullptr;
- if( !translationUnitSyntax->memberDictionary.TryGetValue(entryPointName, firstDeclWithName) )
+ if( !translationUnitSyntax->getMemberDictionary().TryGetValue(entryPointName, firstDeclWithName))
{
// If there doesn't appear to be any such declaration, then
// we need to diagnose it as an error, and then bail out.