Skip to content

Commit c155124

Browse files
[mlir][acc] Fix build error for tiling API return value (#171546)
The build error looks like: error: could not convert 'newLoops' from 'SmallVector<[...],3>' to 'SmallVector<[...],6>' 310 | return newLoops; The fix is to remove the explicit size in the local declaration for the SmallVector being returned.
1 parent eab9394 commit c155124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/OpenACC/Utils/OpenACCUtilsTiling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ llvm::SmallVector<mlir::acc::LoopOp>
253253
mlir::acc::uncollapseLoops(mlir::acc::LoopOp origLoop, unsigned tileCount,
254254
unsigned collapseCount,
255255
mlir::RewriterBase &rewriter) {
256-
llvm::SmallVector<mlir::acc::LoopOp, 3> newLoops;
256+
llvm::SmallVector<mlir::acc::LoopOp> newLoops;
257257
llvm::SmallVector<mlir::Value, 3> newIVs;
258258
mlir::Location loc = origLoop.getLoc();
259259
llvm::SmallVector<bool> newInclusiveUBs;

0 commit comments

Comments
 (0)