Skip to content

Commit 81deb7c

Browse files
author
Artem Gindinson
authored
[SYCL][NFC] Replace the deprecated VectorType::getNumElements() (#2524)
Continue untangling from `-Wdeprecated` in SYCL-specific code. Signed-off-by: Artem Gindinson <[email protected]>
1 parent a61e6a7 commit 81deb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/LowerESIMD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ PreservedAnalyses SYCLLowerESIMDPass::run(Function &F,
12181218
llvm::Value *Src = CastOp->getOperand(0);
12191219
auto TmpTy = llvm::FixedVectorType::get(
12201220
llvm::Type::getInt32Ty(DstTy->getContext()),
1221-
cast<VectorType>(DstTy)->getNumElements());
1221+
cast<FixedVectorType>(DstTy)->getNumElements());
12221222
Src = Builder.CreateFPToSI(Src, TmpTy);
12231223

12241224
llvm::Instruction::CastOps TruncOp = llvm::Instruction::Trunc;

0 commit comments

Comments
 (0)