Skip to content

Commit c730c62

Browse files
committed
[mlir] Fix -Wctad-maybe-unsupported in MemRefUtils.cpp (NFC)
/Users/jiefu/llvm-project/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp:56:3: error: 'SmallVector' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported] SmallVector indicesVec = llvm::to_vector(indices); ^ /Users/jiefu/llvm-project/mlir/include/mlir/Support/LLVM.h:69:7: note: add a deduction guide to suppress this warning class SmallVector; ^ 1 error generated.
1 parent e3a7950 commit c730c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ std::pair<LinearizedMemRefInfo, OpFoldResult> getLinearizedMemRefOffsetAndSize(
5353
unsigned sourceRank = sizes.size();
5454
assert(sizes.size() == strides.size() &&
5555
"expected as many sizes as strides for a memref");
56-
SmallVector indicesVec = llvm::to_vector(indices);
56+
SmallVector<OpFoldResult> indicesVec = llvm::to_vector(indices);
5757
if (indices.empty())
5858
indicesVec.resize(sourceRank, builder.getIndexAttr(0));
5959
assert(indicesVec.size() == strides.size() &&

0 commit comments

Comments
 (0)