[Mlir-commits] [mlir] c6dc9cd - [mlir] Fix build after 77f5b33c
Matthias Springer
llvmlistbot at llvm.org
Wed Dec 6 17:19:10 PST 2023
Author: Matthias Springer
Date: 2023-12-07T10:19:02+09:00
New Revision: c6dc9cd1fbfcb47aa193f16cb02b97876643e1fe
URL: https://github.com/llvm/llvm-project/commit/c6dc9cd1fbfcb47aa193f16cb02b97876643e1fe
DIFF: https://github.com/llvm/llvm-project/commit/c6dc9cd1fbfcb47aa193f16cb02b97876643e1fe.diff
LOG: [mlir] Fix build after 77f5b33c
Added:
Modified:
mlir/lib/Dialect/Affine/Utils/CMakeLists.txt
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Affine/Utils/CMakeLists.txt b/mlir/lib/Dialect/Affine/Utils/CMakeLists.txt
index c2ce43f4eebb2..ef6e0dbf45d3a 100644
--- a/mlir/lib/Dialect/Affine/Utils/CMakeLists.txt
+++ b/mlir/lib/Dialect/Affine/Utils/CMakeLists.txt
@@ -12,6 +12,7 @@ add_mlir_dialect_library(MLIRAffineUtils
MLIRAffineAnalysis
MLIRAnalysis
MLIRArithUtils
+ MLIRFuncDialect
MLIRMemRefDialect
MLIRTransformUtils
MLIRViewLikeInterface
diff --git a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
index 3bb95a0141e04..ec4c41c0000a9 100644
--- a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+++ b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
@@ -176,7 +176,8 @@ foldDynamicToStaticDimSizes(RankedTensorType type, ValueRange dynamicSizes,
SmallVector<Value> &foldedDynamicSizes) {
SmallVector<int64_t> staticShape(type.getShape().begin(),
type.getShape().end());
- assert(type.getNumDynamicDims() == dynamicSizes.size() &&
+ assert(type.getNumDynamicDims() ==
+ static_cast<int64_t>(dynamicSizes.size()) &&
"incorrect number of dynamic sizes");
// Compute new static and dynamic sizes.
More information about the Mlir-commits
mailing list