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 3c3fdf1 commit e85a959Copy full SHA for e85a959
llvm-spirv/lib/SPIRV/LLVMToSPIRVDbgTran.cpp
@@ -201,10 +201,12 @@ void LLVMToSPIRVDbgTran::transLocationInfo() {
201
SPIRVString *DirAndFile = BM->getString(getFullPath(DL.get()));
202
if (File != DirAndFile || LineNo != DL.getLine() ||
203
Col != DL.getCol()) {
204
+ V = SPIRVWriter->getTranslatedValue(&I);
205
+ if (!V)
206
+ continue;
207
File = DirAndFile;
208
LineNo = DL.getLine();
209
Col = DL.getCol();
- V = SPIRVWriter->getTranslatedValue(&I);
210
// According to the spec, OpLine for an OpBranch/OpBranchConditional
211
// must precede the merge instruction and not the branch instruction
212
auto *VPrev = static_cast<SPIRVInstruction *>(V)->getPrevious();
0 commit comments