[Mlir-commits] [mlir] [mlir][NFC] Remove conditionally unused type alias (PR #189894)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 1 00:14:46 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-core

@llvm/pr-subscribers-mlir

Author: Lukas Sommer (sommerlukas)

<details>
<summary>Changes</summary>

The `RawType` type alias is unused (`-Wunused-local-typedef`) in build with asserts deactivated. In combination with `-Werror`, this causes builds to fail. 

---
Full diff: https://github.com/llvm/llvm-project/pull/189894.diff


1 Files Affected:

- (modified) mlir/include/mlir/IR/OperationSupport.h (+2-2) 


``````````diff
diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h
index f801947f2a252..c4ba2f324df72 100644
--- a/mlir/include/mlir/IR/OperationSupport.h
+++ b/mlir/include/mlir/IR/OperationSupport.h
@@ -80,8 +80,8 @@ class PropertyRef {
   Dest as() const {
     static_assert(std::is_pointer_v<Dest>,
                   "PropertyRef::as<T>() requires T to be a pointer type");
-    using RawType = std::remove_cv_t<std::remove_pointer_t<Dest>>;
-    assert((typeID == TypeID::get<RawType>()) &&
+    assert((typeID ==
+            TypeID::get<std::remove_cv_t<std::remove_pointer_t<Dest>>>()) &&
            "Property type mismatch: TypeID does not match requested type");
     return static_cast<Dest>(data);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/189894


More information about the Mlir-commits mailing list