We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9a3ce3 commit a74cbddCopy full SHA for a74cbdd
lib/SPIRV/SPIRVToLLVMDbgTran.cpp
@@ -1101,6 +1101,10 @@ MDNode *SPIRVToLLVMDbgTran::transEntryPoint(const SPIRVExtInst *DebugInst) {
1101
assert(Ops.size() == OperandCount && "Invalid number of operands");
1102
1103
SPIRVExtInst *EP = BM->get<SPIRVExtInst>(Ops[EntryPointIdx]);
1104
+ if (isNonSemanticDebugInfo(DebugInst->getExtSetKind()) &&
1105
+ EP->getArguments().size() <
1106
+ SPIRVDebug::Operand::Function::MinOperandCountNonSem)
1107
+ EP = BM->get<SPIRVExtInst>(EP->getArguments().front());
1108
SPIRVExtInst *CU = BM->get<SPIRVExtInst>(Ops[CompilationUnitIdx]);
1109
std::string Producer = getString(Ops[CompilerSignatureIdx]);
1110
std::string CLArgs = getString(Ops[CommandLineArgsIdx]);
0 commit comments