Skip to content

Commit 99faa03

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp:621:16: error: unused variable 'removed' [-Werror,-Wunused-variable]
1 parent 4afdcd9 commit 99faa03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ void allocateTilesToLiveRanges(
620620
if (!activeRanges.remove(rangeToSpill)) {
621621
bool removed = inactiveRanges.remove(rangeToSpill);
622622
assert(removed && "expected a range to be removed!");
623+
(void)removed;
623624
}
624625
}
625626
rangeToSpill->tileId = tileAllocator.allocateInMemoryTileId();

0 commit comments

Comments
 (0)