@@ -491,9 +491,9 @@ static bool isTrivialFiller(Expr *E) {
491491 return false ;
492492}
493493
494- static void EmitHLSLSplatCast (CodeGenFunction &CGF, Address DestVal,
495- QualType DestTy, llvm::Value *SrcVal,
496- QualType SrcTy, SourceLocation Loc) {
494+ static void EmitHLSLAggregateSplatCast (CodeGenFunction &CGF, Address DestVal,
495+ QualType DestTy, llvm::Value *SrcVal,
496+ QualType SrcTy, SourceLocation Loc) {
497497 // Flatten our destination
498498 SmallVector<QualType> DestTypes; // Flattened type
499499 SmallVector<std::pair<Address, llvm::Value *>, 16 > StoreGEPList;
@@ -988,7 +988,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
988988 case CK_HLSLArrayRValue:
989989 Visit (E->getSubExpr ());
990990 break ;
991- case CK_HLSLSplatCast : {
991+ case CK_HLSLAggregateSplatCast : {
992992 Expr *Src = E->getSubExpr ();
993993 QualType SrcTy = Src->getType ();
994994 RValue RV = CGF.EmitAnyExpr (Src);
@@ -998,7 +998,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
998998
999999 assert (RV.isScalar () && " RHS of HLSL splat cast must be a scalar." );
10001000 llvm::Value *SrcVal = RV.getScalarVal ();
1001- EmitHLSLSplatCast (CGF, DestVal, DestTy, SrcVal, SrcTy, Loc);
1001+ EmitHLSLAggregateSplatCast (CGF, DestVal, DestTy, SrcVal, SrcTy, Loc);
10021002 break ;
10031003 }
10041004 case CK_HLSLElementwiseCast: {
@@ -1591,7 +1591,7 @@ static bool castPreservesZero(const CastExpr *CE) {
15911591 case CK_AtomicToNonAtomic:
15921592 case CK_HLSLVectorTruncation:
15931593 case CK_HLSLElementwiseCast:
1594- case CK_HLSLSplatCast :
1594+ case CK_HLSLAggregateSplatCast :
15951595 return true ;
15961596
15971597 case CK_BaseToDerivedMemberPointer:
0 commit comments