[Reproducers] Use partial template specialization instead of overload

Not sure if this is what's causing MSVC to claim the function to be
already defined elsewhere, but worth a shot.

llvm-svn: 355654
This commit is contained in:
Jonas Devlieghere 2019-03-07 23:37:46 +00:00
parent de04a8c150
commit 4aba7bb923
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ void log_append(llvm::raw_string_ostream &ss, const T *t) {
ss << t;
}
void log_append(llvm::raw_string_ostream &ss, const char *t) { ss << t; }
template <> void log_append<char>(llvm::raw_string_ostream &ss, const char *t) {
ss << t;
}
template <typename Head>
void log_helper(llvm::raw_string_ostream &ss, const Head &head) {