mirror of
https://github.com/intel/intel-graphics-compiler.git
synced 2025-10-30 08:18:26 +08:00
Remove null dereference
Remove null return value dereference
This commit is contained in:
committed by
igcbot
parent
8b32f60b27
commit
7682d93a20
@ -71,7 +71,7 @@ static Constant *constantFoldRdRegion(Type *RetTy,
|
||||
return UndefValue::get(RetTy);
|
||||
// Parse the region parameters.
|
||||
unsigned WholeNumElements =
|
||||
dyn_cast<IGCLLVM::FixedVectorType>(Input->getType())->getNumElements();
|
||||
cast<IGCLLVM::FixedVectorType>(Input->getType())->getNumElements();
|
||||
auto OffsetC = dyn_cast<Constant>(
|
||||
Operands[GenXIntrinsic::GenXRegion::RdIndexOperandNum]);
|
||||
if (!OffsetC)
|
||||
|
||||
Reference in New Issue
Block a user