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 027efe7 commit 8e2c2e5Copy full SHA for 8e2c2e5
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -3774,7 +3774,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
3774
assert(Arg->getType()->isVectorTy() &&
3775
"The vector.reduce.add intrinsic's argument must be a vector!");
3776
ElementCount ReducedVectorElementCount =
3777
- static_cast<VectorType *>(Arg->getType())->getElementCount();
+ cast<VectorType>(Arg->getType())->getElementCount();
3778
if (ReducedVectorElementCount.isFixed()) {
3779
unsigned VectorSize = ReducedVectorElementCount.getFixedValue();
3780
Type *SplatType = Splat->getType();
0 commit comments