summaryrefslogtreecommitdiff
path: root/source/slang/legalize-types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/legalize-types.cpp')
-rw-r--r--source/slang/legalize-types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/legalize-types.cpp b/source/slang/legalize-types.cpp
index 1f0fe93cb..15d7a4621 100644
--- a/source/slang/legalize-types.cpp
+++ b/source/slang/legalize-types.cpp
@@ -355,7 +355,7 @@ struct TupleTypeBuilder
if(auto nameHintDecoration = originalStructType->findDecoration<IRNameHintDecoration>())
{
- builder->addDecoration<IRNameHintDecoration>(ordinaryStructType)->name = nameHintDecoration->name;
+ builder->addNameHintDecoration(ordinaryStructType, nameHintDecoration->getNameOperand());
}
// The new struct type will appear right after the original in the IR,