diff options
Diffstat (limited to 'mlir/lib/Dialect/SPIRV/IR')
| -rw-r--r-- | mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp | 4 | ||||
| -rw-r--r-- | mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp index 0c8114d..938952e 100644 --- a/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp +++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp @@ -346,7 +346,7 @@ LogicalResult spirv::CompositeConstructOp::verify() {        llvm::TypeSwitch<Type, Type>(getType())            .Case<spirv::CooperativeMatrixType>(                [](auto coopType) { return coopType.getElementType(); }) -          .Default([](Type) { return nullptr; }); +          .Default(nullptr);    // Case 1. -- matrices.    if (coopElementType) { @@ -1708,7 +1708,7 @@ LogicalResult spirv::MatrixTimesScalarOp::verify() {        llvm::TypeSwitch<Type, Type>(getMatrix().getType())            .Case<spirv::CooperativeMatrixType, spirv::MatrixType>(                [](auto matrixType) { return matrixType.getElementType(); }) -          .Default([](Type) { return nullptr; }); +          .Default(nullptr);    assert(elementType && "Unhandled type"); diff --git a/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp b/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp index f895807..d1e275d 100644 --- a/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp +++ b/mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp @@ -731,7 +731,7 @@ std::optional<int64_t> SPIRVType::getSizeInBytes() {            return *elementSize * type.getNumElements();          return std::nullopt;        }) -      .Default(std::optional<int64_t>()); +      .Default(std::nullopt);  }  //===----------------------------------------------------------------------===// | 
