Skip to content

Commit

Permalink
bad formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Nov 1, 2023
1 parent dc746f5 commit fc40253
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/clang/lib/CodeGen/CGHLSLMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -859,8 +858,7 @@ static unsigned AlignBaseOffset(unsigned baseOffset, unsigned size, QualType Ty,
BT = hlsl::GetElementTypeOrType(Ty)->getAs<clang::BuiltinType>();
}
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 ||
Expand Down

0 comments on commit fc40253

Please sign in to comment.