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 4b629f7 commit 864cf3aCopy full SHA for 864cf3a
IGC/VectorCompiler/lib/GenXCodeGen/GenXOCLRuntimeInfo.cpp
@@ -248,7 +248,7 @@ unsigned KernelArgBuilder::getArgSizeInBytes(const Argument &Arg) const {
248
return DL.getPointerTypeSize(ArgTy);
249
if (KM.isBufferType(Arg.getArgNo()))
250
return DL.getPointerSize();
251
- return ArgTy->getPrimitiveSizeInBits() / genx::ByteBits;
+ return DL.getTypeSizeInBits(ArgTy) / genx::ByteBits;
252
}
253
254
GenXOCLRuntimeInfo::KernelArgInfo
0 commit comments