diff options
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index e5e8e8acc..1dc81e861 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -4226,7 +4226,7 @@ namespace Slang // DiagnosticSink tempSink(getSourceManager(), nullptr); ExprLocalScope localScope; - SemanticsVisitor subVisitor(withSink(&tempSink).withExprLocalScope(&localScope)); + SemanticsVisitor subVisitor(withSink(&tempSink).withParentFunc(synFuncDecl).withExprLocalScope(&localScope)); // With our temporary diagnostic sink soaking up any messages // from overload resolution, we can now try to resolve |
