summaryrefslogtreecommitdiff
path: root/source/slang/slang-syntax.h
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-07-08 02:32:26 +0800
committerGitHub <noreply@github.com>2023-07-07 14:32:26 -0400
commitfb6605c2a7bc17d3b3b79dabd07e1f05267eb33a (patch)
treebe77ba6868035871ccd7bed10a7c83aada8603b8 /source/slang/slang-syntax.h
parentcdfea42f1b28c6ec7b13500a64be823f67bf8e0a (diff)
Do not use member function of incomplete SemanticsVisitor (#2968)
Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'source/slang/slang-syntax.h')
-rw-r--r--source/slang/slang-syntax.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.h b/source/slang/slang-syntax.h
index ec740d218..44bd1743f 100644
--- a/source/slang/slang-syntax.h
+++ b/source/slang/slang-syntax.h
@@ -84,7 +84,7 @@ namespace Slang
SemanticsVisitor* semanticsVisitor;
static void callback(DeclRefBase declRef, void* userData)
{
- (*((*(Helper*)userData).userFunc))(_getSpecializedDeclRef((*(Helper*)userData).semanticsVisitor->getASTBuilder(), declRef.decl, declRef.substitutions).template as<T>());
+ (*((*(Helper*)userData).userFunc))(_getSpecializedDeclRef(semanticsVisitorGetASTBuilder((*(Helper*)userData).semanticsVisitor), declRef.decl, declRef.substitutions).template as<T>());
}
};
Helper helper;