summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 5ec199658..efc1c6fd1 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1493,7 +1493,8 @@ DeclRef<Decl> Linkage::specializeWithArgTypes(
DiagnosticSink* sink)
{
SemanticsVisitor visitor(getSemanticsForReflection());
- visitor = visitor.withSink(sink);
+ SemanticsVisitor::ExprLocalScope scope;
+ visitor = visitor.withSink(sink).withExprLocalScope(&scope);
SLANG_AST_BUILDER_RAII(getASTBuilder());