================ @@ -278,7 +310,13 @@ static Value *callBufferedPrintfStart( StringData(StringRef(), LenWithNull, LenWithNullAligned, false)); } } else { - int AllocSize = M->getDataLayout().getTypeAllocSize(Args[i]->getType()); + int AllocSize = 0; + if (OCLVectors.test(i)) { + auto VecArg = dyn_cast<FixedVectorType>(Args[i]->getType()); + assert(VecArg && "invalid vector specifier"); + AllocSize = VecArg->getNumElements() * 8; + } else + AllocSize = M->getDataLayout().getTypeAllocSize(Args[i]->getType()); ---------------- arsenm wrote:
Don't understand this split vector handling. Just always use getTypeAllocSize? https://github.com/llvm/llvm-project/pull/72556 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits