[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:
parent
21f94950a8
commit
6a31be68e3
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user