summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-util.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-16 13:55:32 -0800
committerGitHub <noreply@github.com>2023-02-16 13:55:32 -0800
commit4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (patch)
treeed4af0ded878e4f06e9641ce61d26ffd7c89ccbc /source/slang/slang-ir-util.h
parenteda88e513e8b1e2abc05e9dc8555f237d96472df (diff)
Overhaul global inst deduplication and cpp/cuda backend. (#2654)
* Overhaul global inst deduplication and cpp/cuda backend. * Update IR documentation. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-util.h')
-rw-r--r--source/slang/slang-ir-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-util.h b/source/slang/slang-ir-util.h
index efd38f7b7..2f1ac2d1a 100644
--- a/source/slang/slang-ir-util.h
+++ b/source/slang/slang-ir-util.h
@@ -49,7 +49,7 @@ struct DeduplicateContext
return *newValue;
for (UInt i = 0; i < value->getOperandCount(); i++)
{
- value->setOperand(i, deduplicate(value->getOperand(i), shouldDeduplicate));
+ value->unsafeSetOperand(i, deduplicate(value->getOperand(i), shouldDeduplicate));
}
value->setFullType((IRType*)deduplicate(value->getFullType(), shouldDeduplicate));
if (auto newValue = deduplicateMap.TryGetValue(key))