summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 64ef469ef..320263b25 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -4855,16 +4855,10 @@ struct SPIRVEmitContext
return nullptr;
IRBuilder builder(debugVar);
auto name = getName(debugVar);
- if (!name)
- {
- static uint32_t uid = 0;
- uid++;
- name = builder.getStringValue((String("unamed_local_var_") + String(uid)).getUnownedSlice());
- }
auto debugType = emitDebugType(debugVar->getDataType());
auto spvLocalVar = emitOpDebugLocalVariable(getSection(SpvLogicalSectionID::ConstantsAndTypes), debugVar, m_voidType, getNonSemanticDebugInfoExtInst(),
name, debugType, debugVar->getSource(), debugVar->getLine(), debugVar->getCol(), scope,
- builder.getIntValue(builder.getUIntType(), 0), nullptr);
+ builder.getIntValue(builder.getUIntType(), 0), debugVar->getArgIndex());
return spvLocalVar;
}