Skip to content

Commit

Permalink
Update for ElementCount LLVM API change
Browse files Browse the repository at this point in the history
Update for LLVM commit a407ec9b6db ("Revert "Revert "[NFC][llvm] Make
the contructors of `ElementCount` private.""", 2020-08-19).
  • Loading branch information
svenvh committed Aug 21, 2020
1 parent 8e4d367 commit 61491e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/OCL20ToSPIRV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ void OCL20ToSPIRV::visitCallGetImageSize(CallInst *CI,
if (DemangledName == kOCLBuiltinName::GetImageDim) {
if (Desc.Dim == Dim3D) {
auto ZeroVec = ConstantVector::getSplat(
{3, false},
ElementCount::getFixed(3),
Constant::getNullValue(
cast<VectorType>(NCI->getType())->getElementType()));
Constant *Index[] = {getInt32(M, 0), getInt32(M, 1), getInt32(M, 2),
Expand Down

0 comments on commit 61491e0

Please sign in to comment.