diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-11 21:32:20 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-11 21:32:20 +0000 |
commit | 231306bd436e322f571182f56928761db54c3755 (patch) | |
tree | 8929ca95973f1b748b3abe5299dee7c582ba804b | |
parent | 42d16501e68a3c5465c842434aafbb8658979697 (diff) | |
download | bcm5719-llvm-231306bd436e322f571182f56928761db54c3755.tar.gz bcm5719-llvm-231306bd436e322f571182f56928761db54c3755.zip |
[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
-rw-r--r-- | lldb/include/lldb/Utility/ReproducerInstrumentation.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lldb/include/lldb/Utility/ReproducerInstrumentation.h b/lldb/include/lldb/Utility/ReproducerInstrumentation.h index eeb9ab09990..61e4126ddf2 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 <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 <> |