From: Jonas Devlieghere Date: Mon, 11 Mar 2019 21:32:20 +0000 (+0000) Subject: [Reproducers] Reinterpret cast to void* X-Git-Tag: llvmorg-10-init~10259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=231306bd436e322f571182f56928761db54c3755;p=platform%2Fupstream%2Fllvm.git [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. llvm-svn: 355866 --- diff --git a/lldb/include/lldb/Utility/ReproducerInstrumentation.h b/lldb/include/lldb/Utility/ReproducerInstrumentation.h index eeb9ab0..61e4126 100644 --- a/lldb/include/lldb/Utility/ReproducerInstrumentation.h +++ b/lldb/include/lldb/Utility/ReproducerInstrumentation.h @@ -34,12 +34,7 @@ inline void log_append(llvm::raw_string_ostream &ss, const T &t) { template inline void log_append(llvm::raw_string_ostream &ss, const T *t) { - ss << t; -} - -template -inline void log_append(llvm::raw_string_ostream &ss, T (*t)(E...)) { - ss << &t; + ss << reinterpret_cast(t); } template <>