diff options
| author | Yong He <yonghe@outlook.com> | 2023-10-26 10:45:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-26 10:45:08 -0700 |
| commit | 927d176be9ba03be161375b8695de1f0a37f1785 (patch) | |
| tree | 1054acb0552721b6c296a5b9a5ce4ca507d06e78 /source | |
| parent | 4572976fd60817b9e2644b6fcadbf34511e770a9 (diff) | |
Fix generic specialization bug. (#3290)
* Fix generic specialization bug.
* Update test.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-ir-link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
