Skip to content

Commit 8e2c2e5

Browse files
committed
Use cast instead of static_cast
1 parent 027efe7 commit 8e2c2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
37743774
assert(Arg->getType()->isVectorTy() &&
37753775
"The vector.reduce.add intrinsic's argument must be a vector!");
37763776
ElementCount ReducedVectorElementCount =
3777-
static_cast<VectorType *>(Arg->getType())->getElementCount();
3777+
cast<VectorType>(Arg->getType())->getElementCount();
37783778
if (ReducedVectorElementCount.isFixed()) {
37793779
unsigned VectorSize = ReducedVectorElementCount.getFixedValue();
37803780
Type *SplatType = Splat->getType();

0 commit comments

Comments
 (0)