Skip to content

Commit 28e4cbf

Browse files
committed
clang-format
1 parent 52d61dd commit 28e4cbf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,17 +2115,19 @@ LogicalResult spirv::GLDistanceOp::verify() {
21152115
FloatType resultFloatType = llvm::dyn_cast<FloatType>(resultType);
21162116

21172117
if (!p0FloatType || !p1FloatType || !resultFloatType)
2118-
return emitOpError("operands and result must be float scalar or vector of float");
2118+
return emitOpError(
2119+
"operands and result must be float scalar or vector of float");
21192120

21202121
if (p0FloatType != resultFloatType || p1FloatType != resultFloatType)
21212122
return emitOpError("operand and result element types must match");
21222123

21232124
if (auto p0Vec = llvm::dyn_cast<VectorType>(p0Type)) {
2124-
if (!llvm::dyn_cast<VectorType>(p1Type) ||
2125+
if (!llvm::dyn_cast<VectorType>(p1Type) ||
21252126
p0Vec.getShape() != llvm::dyn_cast<VectorType>(p1Type).getShape())
21262127
return emitOpError("vector operands must have same shape");
21272128
} else if (llvm::isa<VectorType>(p1Type)) {
2128-
return emitOpError("expected both operands to be scalars or both to be vectors");
2129+
return emitOpError(
2130+
"expected both operands to be scalars or both to be vectors");
21292131
}
21302132

21312133
return success();

0 commit comments

Comments
 (0)