Skip to content

Commit 3addf30

Browse files
fadeevalvladimirlaz
authored andcommitted
Fix nullptr dereference (intel#741)
Replaced nullptr with an empty string
1 parent 15dd186 commit 3addf30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,7 @@ SPIRVValue *LLVMToSPIRV::transValueWithoutDecoration(Value *V,
15711571

15721572
if (Instruction *Inst = dyn_cast<Instruction>(V)) {
15731573
BM->getErrorLog().checkError(false, SPIRVEC_InvalidInstruction,
1574-
toString(Inst) + "\n", nullptr, __FILE__,
1575-
__LINE__);
1574+
toString(Inst) + "\n", "", __FILE__, __LINE__);
15761575
}
15771576

15781577
llvm_unreachable("Not implemented");

0 commit comments

Comments
 (0)