[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@amd.com>
This commit is contained in:
Lukas Sommer 2026-04-01 10:25:58 +02:00 committed by GitHub
parent 21f94950a8
commit 6a31be68e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,8 +80,8 @@ public:
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);
}