Skip to content

Commit d0d726e

Browse files
authored
Fix GCC build problem with 288f05f related to SmallVector. (#116958)
Below is the error message for reference. /llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp: In static member function 'static llvm::SmallVector<mlir::AffineMap> mlir::linalg::MatmulOp::getDefaultIndexingMaps(mlir::MLIRContext*)': /llvm-project/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp:3468:10: error: could not convert 'indexingMaps' from 'SmallVector<[...],3>' to 'SmallVector<[...],6>' 3468 | return indexingMaps; | ^~~~~~~~~~~~ | | | SmallVector<[...],3> Here is the link to the failure. https://lab.llvm.org/buildbot/#/builders/117/builds/3919 ...
1 parent c0fdedf commit d0d726e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@ namespace linalg {
34603460
/// Returns a list of AffineMap with the typical matmul indexing charactristic.
34613461
SmallVector<AffineMap> MatmulOp::getDefaultIndexingMaps(MLIRContext *context) {
34623462
AffineExpr d0, d1, d2;
3463-
SmallVector<AffineMap, 3> indexingMaps;
3463+
SmallVector<AffineMap> indexingMaps;
34643464
bindDims(context, d0, d1, d2);
34653465
indexingMaps.push_back(AffineMap::get(3, 0, {d0, d2}, context));
34663466
indexingMaps.push_back(AffineMap::get(3, 0, {d2, d1}, context));

0 commit comments

Comments
 (0)