From cfdffd90a0c092e5c49111bc1d34721e6fa24346 Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Wed, 17 Apr 2019 14:38:45 -0700 Subject: [PATCH] Use proper C++ casts in Location.h This CL reduces the amount of warning spew when compiling with CMake on Linux. -- PiperOrigin-RevId: 244070052 --- mlir/include/mlir/IR/Location.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/include/mlir/IR/Location.h b/mlir/include/mlir/IR/Location.h index 57dcce2..efcee49 100644 --- a/mlir/include/mlir/IR/Location.h +++ b/mlir/include/mlir/IR/Location.h @@ -107,7 +107,7 @@ public: return static_cast(loc); } static Location getFromOpaquePointer(const void *pointer) { - return Location((ImplType *)(pointer)); + return Location(reinterpret_cast(const_cast(pointer))); } protected: -- 2.7.4