Skip to content

Commit aa8f5e6

Browse files
committed
[mlir] Fix -Wunused-variable in TransformInterfaces.h (NFC)
/llvm-project/mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h:235:12: error: unused variable 'sameTimestamp' [-Werror,-Wunused-variable] bool sameTimestamp = ^ /llvm-project/mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h:260:12: error: unused variable 'sameTimestamp' [-Werror,-Wunused-variable] bool sameTimestamp = ^ 2 errors generated.
1 parent 2d902d0 commit aa8f5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class TransformState {
232232
// the data structure is compacted). Do not enumerate these ops.
233233
return llvm::make_filter_range(view, [=](Operation *op) {
234234
#ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS
235-
bool sameTimestamp =
235+
[[maybe_unused]] bool sameTimestamp =
236236
currentTimestamp == this->getMapping(value).timestamps.lookup(value);
237237
assert(sameTimestamp && "iterator was invalidated during iteration");
238238
#endif // LLVM_ENABLE_ABI_BREAKING_CHECKS
@@ -257,7 +257,7 @@ class TransformState {
257257
int64_t currentTimestamp =
258258
getMapping(handleValue).timestamps.lookup(handleValue);
259259
return llvm::make_filter_range(view, [=](Value v) {
260-
bool sameTimestamp =
260+
[[maybe_unused]] bool sameTimestamp =
261261
currentTimestamp ==
262262
this->getMapping(handleValue).timestamps.lookup(handleValue);
263263
assert(sameTimestamp && "iterator was invalidated during iteration");

0 commit comments

Comments
 (0)