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