From 77e6c6470e1aeac14ea31ba493b71f053e66f404 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:50:24 -0400 Subject: [PATCH] Fixes #4879 (#4881) track containor-decl with `DifferentialType` scope varaible synthesized --- source/slang/slang-ast-synthesis.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/slang/slang-ast-synthesis.h b/source/slang/slang-ast-synthesis.h index e595afac12..0726360d3f 100644 --- a/source/slang/slang-ast-synthesis.h +++ b/source/slang/slang-ast-synthesis.h @@ -52,6 +52,7 @@ class ASTSynthesizer auto parentScope = getScope(decl); decl->ownedScope = m_builder->create(); decl->ownedScope->parent = parentScope; + decl->ownedScope->containerDecl = decl; pushContainerScope(decl); }