Skip to content

Commit 91a4cba

Browse files
authored
[SYCL] Fix Klocwork issue in LowerInvokeSimd.cpp. (#6871)
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 0528ddc commit 91a4cba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/SYCLLowerIR/LowerInvokeSimd.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ bool processInvokeSimdCall(CallInst *InvokeSimd,
408408
// 3.1. Create a new declaration for the intrinsic (with 1 parameter less):
409409
constexpr unsigned HelperArgNo = 0;
410410
Function *InvokeSimdF = InvokeSimd->getCalledFunction();
411+
assert(InvokeSimdF && "Unexpected IR for invoke_simd");
411412
// - type of the obsolete (unmodified) helper:
412413
Type *HelperArgTy = InvokeSimdF->getArg(HelperArgNo)->getType();
413414
unsigned AS = dyn_cast<PointerType>(HelperArgTy)->getAddressSpace();

0 commit comments

Comments
 (0)