@@ -2429,7 +2429,7 @@ void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst,
24292429 llvm::Value *SrcVal = Src.getScalarVal ();
24302430
24312431 if (SrcVal->getType ()->getPrimitiveSizeInBits () <
2432- VecTy->getScalarSizeInBits ())
2432+ VecTy->getScalarSizeInBits ())
24332433 SrcVal = Builder.CreateZExt (SrcVal, VecTy->getScalarType ());
24342434
24352435 auto *IRStoreTy = dyn_cast<llvm::IntegerType>(Vec->getType ());
@@ -2655,8 +2655,7 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src,
26552655
26562656 if (const VectorType *VTy = Dst.getType ()->getAs <VectorType>()) {
26572657 unsigned NumSrcElts = VTy->getNumElements ();
2658- unsigned NumDstElts =
2659- cast<llvm::FixedVectorType>(VecTy)->getNumElements ();
2658+ unsigned NumDstElts = cast<llvm::FixedVectorType>(VecTy)->getNumElements ();
26602659 if (NumDstElts == NumSrcElts) {
26612660 // Use shuffle vector is the src and destination are the same number of
26622661 // elements and restore the vector mask since it is on the side it will be
@@ -2666,7 +2665,8 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src,
26662665 Mask[getAccessedFieldNo (i, Elts)] = i;
26672666
26682667 llvm::Value *SrcVal = Src.getScalarVal ();
2669- if (VecTy->getScalarSizeInBits () > SrcVal->getType ()->getScalarSizeInBits ())
2668+ if (VecTy->getScalarSizeInBits () >
2669+ SrcVal->getType ()->getScalarSizeInBits ())
26702670 SrcVal = Builder.CreateZExt (SrcVal, VecTy);
26712671
26722672 Vec = Builder.CreateShuffleVector (SrcVal, Mask);
@@ -2679,7 +2679,8 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src,
26792679 for (unsigned i = 0 ; i != NumSrcElts; ++i)
26802680 ExtMask.push_back (i);
26812681 ExtMask.resize (NumDstElts, -1 );
2682- llvm::Value *ExtSrcVal = Builder.CreateShuffleVector (Src.getScalarVal (), ExtMask);
2682+ llvm::Value *ExtSrcVal =
2683+ Builder.CreateShuffleVector (Src.getScalarVal (), ExtMask);
26832684 // build identity
26842685 SmallVector<int , 4 > Mask;
26852686 for (unsigned i = 0 ; i != NumDstElts; ++i)
0 commit comments