[Mlir-commits] [mlir] 05bce3f - [mlir][ArmSME] Suppress potential unused warning (#99573)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 18 14:55:26 PDT 2024


Author: Chenguang Wang
Date: 2024-07-18T14:55:22-07:00
New Revision: 05bce3f079b677edd0efd28e3923f4776ffb8b59

URL: https://github.com/llvm/llvm-project/commit/05bce3f079b677edd0efd28e3923f4776ffb8b59
DIFF: https://github.com/llvm/llvm-project/commit/05bce3f079b677edd0efd28e3923f4776ffb8b59.diff

LOG: [mlir][ArmSME] Suppress potential unused warning (#99573)

When building in release mode, the assert will be dropped, making
`remove` unused.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
index 3a2042d23e534..e3fc3473c6c6b 100644
--- a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
+++ b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
@@ -619,6 +619,7 @@ void allocateTilesToLiveRanges(
         // Remove the live range from the active/inactive sets.
         if (!activeRanges.remove(rangeToSpill)) {
           bool removed = inactiveRanges.remove(rangeToSpill);
+          (void)removed;
           assert(removed && "expected a range to be removed!");
           (void)removed;
         }


        


More information about the Mlir-commits mailing list