diff options
| author | Yong He <yonghe@outlook.com> | 2022-10-26 08:32:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 08:32:24 -0700 |
| commit | 939be44ca23476e622dfb24a592383fe2a1da61f (patch) | |
| tree | 7f45645897fe5735d58a7687290552d479e4d6fc /source/slang/slang-check-shader.cpp | |
| parent | 4fc34b18da2f83ee6b4f094067503a66cab3d0b5 (diff) | |
Auto synthesis of Differential type (#2466)
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
| -rw-r--r-- | source/slang/slang-check-shader.cpp | 10 |
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. |
