summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-link.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-link.cpp')
-rw-r--r--source/slang/slang-ir-link.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp
index b874b9f28..a3466c8c7 100644
--- a/source/slang/slang-ir-link.cpp
+++ b/source/slang/slang-ir-link.cpp
@@ -1332,6 +1332,11 @@ IRInst* cloneInst(
IRInst* originalInst,
IROriginalValuesForClone const& originalValues)
{
+#if SLANG_ENABLE_IR_BREAK_ALLOC
+ _debugSetInstBeingCloned(originalInst->_debugUID);
+ SLANG_DEFER(_debugResetInstBeingCloned());
+#endif
+
switch (originalInst->getOp())
{
// We need to special-case any instruction that is not
@@ -1427,7 +1432,6 @@ IRInst* cloneInst(
}
auto funcType = cloneType(context, originalInst->getFullType());
context->builder = oldBuilder;
-
IRInst* clonedInst = builder->createIntrinsicInst(
funcType,
originalInst->getOp(),