Skip to content

Commit 5d53e81

Browse files
aparshin-intelsys_zuul
authored andcommitted
fixing static analysis warnings
Change-Id: I28d3d54ec61b7e8458cc66682b0b4fb127b731b5
1 parent 91908ca commit 5d53e81

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXFuncPtrsLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,10 @@ Value *GenXFunctionPointersLowering::reconstructValue(Value *V,
367367
Scale),
368368
OrigV->getType()->getVectorNumElements() / Scale))
369369
: cast<Value>(Worklist.back()));
370-
auto *PTI = CastInst::CreateBitOrPointerCast(
371-
getFunctionPointerFunc(EEInst->getVectorOperand()),
372-
Type::getInt64Ty(*Ctx), "", EEInst);
370+
auto *FptrF = getFunctionPointerFunc(EEInst->getVectorOperand());
371+
IGC_ASSERT(FptrF);
372+
auto *PTI = CastInst::CreateBitOrPointerCast(FptrF,
373+
Type::getInt64Ty(*Ctx), "", EEInst);
373374
IGC_ASSERT(PTI && "CreateBitOrPointerCast failed!");
374375
PTI->setDebugLoc(EEInst->getDebugLoc());
375376
Instruction *NewInsElem = InsertElementInst::Create(

0 commit comments

Comments
 (0)