[Lldb-commits] [lldb] r355866 - [Reproducers] Reinterpret cast to void*

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 11 14:32:21 PDT 2019

Author: jdevlieghere
Date: Mon Mar 11 14:32:20 2019
New Revision: 355866

URL: http://llvm.org/viewvc/llvm-project?rev=355866&view=rev
[Reproducers] Reinterpret cast to void*

Apparently the log_append variant added in r355863 is considered
ambiguous. At this point I'm out of ideas so a good old reinterpret cast
will have to do. If anybody has a better idea I'd be happy to hear it.


Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h?rev=355866&r1=355865&r2=355866&view=diff
--- lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h (original)
+++ lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Mon Mar 11 14:32:20 2019
@@ -34,12 +34,7 @@ inline void log_append(llvm::raw_string_
 template <typename T>
 inline void log_append(llvm::raw_string_ostream &ss, const T *t) {
-  ss << t;
-template <typename T, typename... E>
-inline void log_append(llvm::raw_string_ostream &ss, T (*t)(E...)) {
-  ss << &t;
+  ss << reinterpret_cast<const void *>(t);
 template <>

More information about the lldb-commits mailing list