diff --git a/lldb/include/lldb/Utility/ReproducerInstrumentation.h b/lldb/include/lldb/Utility/ReproducerInstrumentation.h index 75f38929e362..3b5dde3d2e2a 100644 --- a/lldb/include/lldb/Utility/ReproducerInstrumentation.h +++ b/lldb/include/lldb/Utility/ReproducerInstrumentation.h @@ -34,17 +34,12 @@ inline void stringify_append(llvm::raw_string_ostream &ss, const T &t) { template inline void stringify_append(llvm::raw_string_ostream &ss, T *t) { - ss << static_cast(t); + ss << reinterpret_cast(t); } template inline void stringify_append(llvm::raw_string_ostream &ss, const T *t) { - ss << static_cast(t); -} - -template -inline void stringify_append(llvm::raw_string_ostream &ss, T (*t)(Args...)) { - ss << "function pointer"; + ss << reinterpret_cast(t); } template <>