Skip to content

Commit e0201e9

Browse files
committed
Add [[maybe_unused]] to bool result
1 parent a01658f commit e0201e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/Utils/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ computeSliceParameters(OpBuilder &builder, Location loc, Value valueToTile,
599599
// The offset of the slice is m(lbs) - m(0).
600600
SmallVector<Attribute> zeros(lbs.size(), rewriter.getIndexAttr(0));
601601
SmallVector<Attribute> mAtZero;
602-
auto res = m.constantFold(zeros, mAtZero);
602+
[[maybe_unused]] auto res = m.constantFold(zeros, mAtZero);
603603
assert(succeeded(res) && "affine_map must be evaluatable (not symbols)");
604604
int64_t mAtZeroInt =
605605
cast<IntegerAttr>(mAtZero[0]).getValue().getSExtValue();

0 commit comments

Comments
 (0)