From 927d176be9ba03be161375b8695de1f0a37f1785 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 26 Oct 2023 10:45:08 -0700 Subject: Fix generic specialization bug. (#3290) * Fix generic specialization bug. * Update test. --------- Co-authored-by: Yong He --- 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 b8f43c5f2..87b4f3fde 100644 --- a/source/slang/slang-ir-link.cpp +++ b/source/slang/slang-ir-link.cpp @@ -307,7 +307,7 @@ IRInst* IRSpecContext::maybeCloneValue(IRInst* originalValue) registerClonedValue(this, clonedValue, originalValue); cloneDecorationsAndChildren(this, clonedValue, originalValue); - builder->addInst(clonedValue); + addHoistableInst(builder, clonedValue); return clonedValue; } -- cgit v1.2.3