From 12137e9b00436eee3bf27f7a2fc5106513af8981 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Fri, 30 Aug 2024 07:35:01 -0700 Subject: Fix redundant decorations in IRParam (#4964) * Fix redundant decorations in IRParam Closes #4922 The problem was that same decorations were added to an IRParam multiple times while running `specializeIRForEntryPoint()`. `cloneGlobalValueWithCodeCommon()` kept cloning decorations for the params that were already processed. --- source/slang/slang-ir-link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp index 94ba75a44..5865d5320 100644 --- a/source/slang/slang-ir-link.cpp +++ b/source/slang/slang-ir-link.cpp @@ -751,9 +751,9 @@ void cloneGlobalValueWithCodeCommon( IRParam* originalParam; IRParam* clonedParam; }; - ShortList paramCloneInfos; while (ob) { + ShortList paramCloneInfos; SLANG_ASSERT(cb); builder->setInsertInto(cb); -- cgit v1.2.3