[Mlir-commits] [mlir] 99faa03 - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Thu Jul 18 14:41:21 PDT 2024


Author: Kazu Hirata
Date: 2024-07-18T14:41:15-07:00
New Revision: 99faa038c66872f6507dfe1d5aa470ba13e58614

URL: https://github.com/llvm/llvm-project/commit/99faa038c66872f6507dfe1d5aa470ba13e58614
DIFF: https://github.com/llvm/llvm-project/commit/99faa038c66872f6507dfe1d5aa470ba13e58614.diff

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp:621:16: error:
  unused variable 'removed' [-Werror,-Wunused-variable]

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 5cac770b03ed1..3a2042d23e534 100644
--- a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
+++ b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
@@ -620,6 +620,7 @@ void allocateTilesToLiveRanges(
         if (!activeRanges.remove(rangeToSpill)) {
           bool removed = inactiveRanges.remove(rangeToSpill);
           assert(removed && "expected a range to be removed!");
+          (void)removed;
         }
       }
       rangeToSpill->tileId = tileAllocator.allocateInMemoryTileId();


        


More information about the Mlir-commits mailing list