diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-07-08 02:32:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-07 14:32:26 -0400 |
| commit | fb6605c2a7bc17d3b3b79dabd07e1f05267eb33a (patch) | |
| tree | be77ba6868035871ccd7bed10a7c83aada8603b8 /source/slang/slang-syntax.h | |
| parent | cdfea42f1b28c6ec7b13500a64be823f67bf8e0a (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.h | 2 |
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; |
