[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:
parent
42d16501e6
commit
231306bd43
|
@ -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 <>
|
||||
|
|
Loading…
Reference in New Issue