From 939be44ca23476e622dfb24a592383fe2a1da61f Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 26 Oct 2022 08:32:24 -0700 Subject: Auto synthesis of Differential type (#2466) --- source/slang/slang-check-shader.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source/slang/slang-check-shader.cpp') 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. -- cgit v1.2.3