Skip to content

Commit e06158c

Browse files
committed
clang format
1 parent 7dfe26d commit e06158c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/CodeGen/CGHLSLBuiltins.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,12 @@ Value *CodeGenFunction::EmitHLSLBuiltinExpr(unsigned BuiltinID,
369369
}
370370
// For vectors, validate types and emit the appropriate intrinsic
371371
assert(CGM.getContext().hasSameUnqualifiedType(E->getArg(0)->getType(),
372-
E->getArg(1)->getType())
373-
&& "Dot product operands must have the same type.");
372+
E->getArg(1)->getType()) &&
373+
"Dot product operands must have the same type.");
374374

375375
auto *VecTy0 = E->getArg(0)->getType()->castAs<VectorType>();
376376
assert(VecTy0 && "Dot product argument must be a vector.");
377-
377+
378378
return Builder.CreateIntrinsic(
379379
/*ReturnType=*/T0->getScalarType(),
380380
getDotProductIntrinsic(CGM.getHLSLRuntime(), VecTy0->getElementType()),

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ static bool CheckVectorElementCallArgs(Sema *S, CallExpr *TheCall) {
20162016
if (VecTyA && VecTyB) {
20172017
bool retValue = false;
20182018
if (!S->Context.hasSameUnqualifiedType(VecTyA->getElementType(),
2019-
VecTyB->getElementType())) {
2019+
VecTyB->getElementType())) {
20202020
// Note: type promotion is intended to be handeled via the intrinsics
20212021
// and not the builtin itself.
20222022
S->Diag(TheCall->getBeginLoc(),

0 commit comments

Comments
 (0)