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 c9dc6b9 commit d65d5cbCopy full SHA for d65d5cb
IGC/Compiler/Optimizer/OpenCLPasses/StatelessToStatefull/StatelessToStatefull.cpp
@@ -362,7 +362,7 @@ bool StatelessToStatefull::pointerIsPositiveOffsetFromKernelArgument(
362
363
// stripPointerCasts might skip addrSpaceCast, thus check if AS is still
364
// the original one. Also, if base is still instruction, skip.
365
- if (gep && cast<PointerType>(base->getType())->getAddressSpace() == ptrAS && !isa<Instruction>(base))
+ if (cast<PointerType>(base->getType())->getAddressSpace() == ptrAS && !isa<Instruction>(base))
366
{
367
if (const KernelArg * arg = getKernelArg(base))
368
0 commit comments