summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-08-30 07:35:01 -0700
committerGitHub <noreply@github.com>2024-08-30 07:35:01 -0700
commit12137e9b00436eee3bf27f7a2fc5106513af8981 (patch)
tree002703d3251e5280cd1fe62978ac88fa1716c1c4 /source
parentddf4a323be5ae4e59dce742f618dbbdee4ed28d8 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir-link.cpp2
1 files changed, 1 insertions, 1 deletions
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<ParamCloneInfo> paramCloneInfos;
while (ob)
{
+ ShortList<ParamCloneInfo> paramCloneInfos;
SLANG_ASSERT(cb);
builder->setInsertInto(cb);