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 7ed62c9 commit 68c609eCopy full SHA for 68c609e
IGC/Compiler/Optimizer/OpenCLPasses/StatelessToStatefull/StatelessToStatefull.cpp
@@ -353,7 +353,7 @@ bool StatelessToStatefull::pointerIsPositiveOffsetFromKernelArgument(
353
354
// stripPointerCasts might skip addrSpaceCast, thus check if AS is still
355
// the original one. Also, if base is still instruction, skip.
356
- if ((gep && gep->getAddressSpace() == ptrAS) && !isa<Instruction>(base))
+ if (gep && cast<PointerType>(base->getType())->getAddressSpace() == ptrAS && !isa<Instruction>(base))
357
{
358
if (const KernelArg* arg = getKernelArg(base))
359
0 commit comments