diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2025-01-14 17:48:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 14:48:17 -0800 |
| commit | cb835b9596f78771dfd584aaa72aee7bc360b3d4 (patch) | |
| tree | c6ccdca8b61789eedb08e3060bdfdd3d9e531483 /source/slang/slang.cpp | |
| parent | 4e62f98f3abfa1b1e125c371160ed309ca5b6c04 (diff) | |
Fix issue with specialization using arithmetic expressions (#6084)
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 3 |
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()); |
