Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2672,13 +2672,8 @@ Value *SPIRVToLLVM::transValueWithoutDecoration(SPIRVValue *BV, Function *F,
case SPIRVEIS_OpenCL_DebugInfo_100:
case SPIRVEIS_NonSemantic_Shader_DebugInfo_100:
case SPIRVEIS_NonSemantic_Shader_DebugInfo_200:
if (!M->IsNewDbgInfoFormat) {
return mapValue(
BV, cast<Instruction *>(DbgTran->transDebugIntrinsic(ExtInst, BB)));
} else {
DbgTran->transDebugIntrinsic(ExtInst, BB);
return mapValue(BV, nullptr);
}
DbgTran->transDebugIntrinsic(ExtInst, BB);
return mapValue(BV, nullptr);
default:
llvm_unreachable("Unknown extended instruction set!");
}
Expand Down
9 changes: 2 additions & 7 deletions lib/SPIRV/SPIRVToLLVMDbgTran.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1604,13 +1604,8 @@ SPIRVToLLVMDbgTran::transDebugIntrinsic(const SPIRVExtInst *DebugInst,
}
if (!MDs.empty()) {
DIArgList *AL = DIArgList::get(M->getContext(), MDs);
if (M->IsNewDbgInfoFormat) {
cast<DbgVariableRecord>(cast<DbgRecord *>(DbgValIntr))
->setRawLocation(AL);
} else {
cast<DbgVariableIntrinsic>(cast<Instruction *>(DbgValIntr))
->setRawLocation(AL);
}
cast<DbgVariableRecord>(cast<DbgRecord *>(DbgValIntr))
->setRawLocation(AL);
}
return DbgValIntr;
}
Expand Down
Loading