From fc40253c05fc8b1d3d79fc00ecd2aa34a9f55c0e Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 1 Nov 2023 12:46:09 -0500 Subject: [PATCH] bad formatting --- tools/clang/lib/CodeGen/CGHLSLMS.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/clang/lib/CodeGen/CGHLSLMS.cpp b/tools/clang/lib/CodeGen/CGHLSLMS.cpp index 441add14db..d42f9d8960 100644 --- a/tools/clang/lib/CodeGen/CGHLSLMS.cpp +++ b/tools/clang/lib/CodeGen/CGHLSLMS.cpp @@ -831,8 +831,7 @@ static void ConstructFieldInterpolation(DxilFieldAnnotation &fieldAnnotation, fieldAnnotation.SetInterpolationMode(InterpMode); } -static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty, - bool bDefaultRowMajor) { +static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty, bool bDefaultRowMajor) { // Do not align if resource, since resource isn't really here. if (IsHLSLResourceType(Ty)) return baseOffset; @@ -859,8 +858,7 @@ static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty, BT = hlsl::GetElementTypeOrType(Ty)->getAs(); } if (BT) { - if (BT->getKind() == clang::BuiltinType::Kind::Double || - BT->getKind() == clang::BuiltinType::Kind::LongLong || + if (BT->getKind() == clang::BuiltinType::Kind::Double || BT->getKind() == clang::BuiltinType::Kind::LongLong || BT->getKind() == clang::BuiltinType::Kind::ULongLong) scalarSizeInBytes = 8; else if (BT->getKind() == clang::BuiltinType::Kind::Half ||