[Mlir-commits] [mlir] [mlir] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (PR #163917)
    llvmlistbot at llvm.org 
    llvmlistbot at llvm.org
       
    Thu Oct 16 23:42:21 PDT 2025
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-sparse
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]],
introduced as part of C++17.
---
Full diff: https://github.com/llvm/llvm-project/pull/163917.diff
1 Files Affected:
- (modified) mlir/unittests/Dialect/SparseTensor/MergerTest.cpp (+1-1) 
``````````diff
diff --git a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp
index 2a583059d2e0a..2b92e47d9288e 100644
--- a/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp
+++ b/mlir/unittests/Dialect/SparseTensor/MergerTest.cpp
@@ -141,7 +141,7 @@ class MergerTestBase : public ::testing::TestWithParam<LevelFormat> {
   }
 
 #define IMPL_BINOP_EXPR(OP, KIND)                                              \
-  LLVM_ATTRIBUTE_UNUSED ExprId OP##Expr(ExprId e0, ExprId e1) {                \
+  [[maybe_unused]] ExprId OP##Expr(ExprId e0, ExprId e1) {                     \
     return merger.addExp(KIND, e0, e1);                                        \
   }
   FOREVERY_BINOP(IMPL_BINOP_EXPR)
``````````
</details>
https://github.com/llvm/llvm-project/pull/163917
    
    
More information about the Mlir-commits
mailing list