Skip to content

Commit 014b186

Browse files
committed
Fix misused of SrcVecTy instead VecTy
1 parent dba637d commit 014b186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ bool VectorCombine::foldInsExtFNeg(Instruction &I) {
666666
return false;
667667

668668
auto *VecTy = cast<FixedVectorType>(I.getType());
669+
auto *ScalarTy = VecTy->getScalarType();
669670
auto *SrcVecTy = dyn_cast<FixedVectorType>(SrcVec->getType());
670-
auto *ScalarTy = SrcVecTy->getScalarType();
671671
if (!SrcVecTy || ScalarTy != SrcVecTy->getScalarType())
672672
return false;
673673

0 commit comments

Comments
 (0)