summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-03-11 21:32:20 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-03-11 21:32:20 +0000
commit231306bd436e322f571182f56928761db54c3755 (patch)
tree8929ca95973f1b748b3abe5299dee7c582ba804b
parent42d16501e68a3c5465c842434aafbb8658979697 (diff)
downloadbcm5719-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.h7
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 <>
OpenPOWER on IntegriCloud