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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 1 01:26:03 PDT 2026


Author: Lukas Sommer
Date: 2026-04-01T10:25:58+02:00
New Revision: 6a31be68e38e4656354edddfcb137b0c8234a01c

URL: https://github.com/llvm/llvm-project/commit/6a31be68e38e4656354edddfcb137b0c8234a01c
DIFF: https://github.com/llvm/llvm-project/commit/6a31be68e38e4656354edddfcb137b0c8234a01c.diff

LOG: [mlir][NFC] Remove conditionally unused type alias (#189894)

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

Signed-off-by: Lukas Sommer <lukas.sommer at amd.com>

Added: 
    

Modified: 
    mlir/include/mlir/IR/OperationSupport.h

Removed: 
    


################################################################################
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);
   }


        


More information about the Mlir-commits mailing list