From: Nicolas Vasilache Date: Wed, 17 Apr 2019 21:41:33 +0000 (-0700) Subject: Use proper C++ casts in Types.h X-Git-Tag: llvmorg-11-init~1466^2~1917 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b0c2420f7ccb2849ddee7639110df09b86e0814;p=platform%2Fupstream%2Fllvm.git Use proper C++ casts in Types.h This CL reduces the amount of warning spew when compiling with CMake on Linux. -- PiperOrigin-RevId: 244070668 --- 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: