Skip to content

Commit 97a3452

Browse files
wecingyuxuanchen1997
authored andcommitted
[mlir][ArmSME] Suppress potential unused warning (#99573)
When building in release mode, the assert will be dropped, making `remove` unused.
1 parent 0937a24 commit 97a3452

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
@@ -619,6 +619,7 @@ void allocateTilesToLiveRanges(
619619
// Remove the live range from the active/inactive sets.
620620
if (!activeRanges.remove(rangeToSpill)) {
621621
bool removed = inactiveRanges.remove(rangeToSpill);
622+
(void)removed;
622623
assert(removed && "expected a range to be removed!");
623624
(void)removed;
624625
}

0 commit comments

Comments
 (0)