From: Nicolas Vasilache Date: Wed, 17 Apr 2019 21:38:45 +0000 (-0700) Subject: Use proper C++ casts in Location.h X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfdffd90a0c092e5c49111bc1d34721e6fa24346;p=platform%2Fupstream%2Fllvm.git Use proper C++ casts in Location.h This CL reduces the amount of warning spew when compiling with CMake on Linux. -- PiperOrigin-RevId: 244070052 --- 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: