summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-legalize-types.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-02-28 22:57:07 -0800
committerGitHub <noreply@github.com>2024-02-28 22:57:07 -0800
commit73a61edda8893901acad05bb4e7d3110db5041a8 (patch)
treebb6331b28715a4e95fcd7724ad338149ce56e562 /source/slang/slang-legalize-types.cpp
parentd2644e2f8f0abb73bbd6afd70816f6bf245340da (diff)
[SPIRV] Add NonSemanticDebugInfo for step-through debugging. (#3644)
* [SPIRV] Add NonSemanticDebugInfo for step-through debugging. * Fix. * Fix.
Diffstat (limited to 'source/slang/slang-legalize-types.cpp')
-rw-r--r--source/slang/slang-legalize-types.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-legalize-types.cpp b/source/slang/slang-legalize-types.cpp
index 8ed5a12b7..c8a840ce9 100644
--- a/source/slang/slang-legalize-types.cpp
+++ b/source/slang/slang-legalize-types.cpp
@@ -2,6 +2,7 @@
#include "slang-legalize-types.h"
#include "slang-ir-insts.h"
+#include "slang-ir-util.h"
#include "slang-mangle.h"
namespace Slang
@@ -447,11 +448,7 @@ struct TupleTypeBuilder
IRBuilder* builder = context->getBuilder();
IRStructType* ordinaryStructType = builder->createStructType();
ordinaryStructType->sourceLoc = originalStructType->sourceLoc;
-
- if(auto nameHintDecoration = originalStructType->findDecoration<IRNameHintDecoration>())
- {
- builder->addNameHintDecoration(ordinaryStructType, nameHintDecoration->getNameOperand());
- }
+ copyNameHintAndDebugDecorations(ordinaryStructType, originalStructType);
// The new struct type will appear right after the original in the IR,
// so that we can be sure any instruction that could reference the