From 5b0c2420f7ccb2849ddee7639110df09b86e0814 Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Wed, 17 Apr 2019 14:41:33 -0700 Subject: [PATCH] Use proper C++ casts in Types.h This CL reduces the amount of warning spew when compiling with CMake on Linux. -- PiperOrigin-RevId: 244070668 --- mlir/include/mlir/IR/Types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/include/mlir/IR/Types.h b/mlir/include/mlir/IR/Types.h index e207291..951259b 100644 --- a/mlir/include/mlir/IR/Types.h +++ b/mlir/include/mlir/IR/Types.h @@ -241,7 +241,7 @@ public: return static_cast(type); } static Type getFromOpaquePointer(const void *pointer) { - return Type((ImplType *)(pointer)); + return Type(reinterpret_cast(const_cast(pointer))); } protected: -- 2.7.4