[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
This commit is contained in:
Jonas Devlieghere 2019-03-11 21:32:20 +00:00
parent 42d16501e6
commit 231306bd43
1 changed files with 1 additions and 6 deletions

View File

@ -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 <>