File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1101,6 +1101,11 @@ MDNode *SPIRVToLLVMDbgTran::transEntryPoint(const SPIRVExtInst *DebugInst) {
1101
1101
assert (Ops.size () == OperandCount && " Invalid number of operands" );
1102
1102
1103
1103
SPIRVExtInst *EP = BM->get <SPIRVExtInst>(Ops[EntryPointIdx]);
1104
+ // Handle cases where we get the trampoline / stub instead of an actual kernel
1105
+ if (isNonSemanticDebugInfo (DebugInst->getExtSetKind ()) &&
1106
+ EP->getArguments ().size () <
1107
+ SPIRVDebug::Operand::Function::MinOperandCountNonSem)
1108
+ EP = BM->get <SPIRVExtInst>(EP->getArguments ().front ());
1104
1109
SPIRVExtInst *CU = BM->get <SPIRVExtInst>(Ops[CompilationUnitIdx]);
1105
1110
std::string Producer = getString (Ops[CompilerSignatureIdx]);
1106
1111
std::string CLArgs = getString (Ops[CommandLineArgsIdx]);
You can’t perform that action at this time.
0 commit comments