forked from OSchip/llvm-project
Use proper C++ casts in Location.h
This CL reduces the amount of warning spew when compiling with CMake on Linux. -- PiperOrigin-RevId: 244070052
This commit is contained in:
parent
4aa9235ae0
commit
cfdffd90a0
|
@ -107,7 +107,7 @@ public:
|
|||
return static_cast<const void *>(loc);
|
||||
}
|
||||
static Location getFromOpaquePointer(const void *pointer) {
|
||||
return Location((ImplType *)(pointer));
|
||||
return Location(reinterpret_cast<ImplType *>(const_cast<void *>(pointer)));
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue