Author: jdevlieghere Date: Thu Mar 7 15:37:46 2019 New Revision: 355654 URL: http://llvm.org/viewvc/llvm-project?rev=355654&view=rev Log: [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. Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h?rev=355654&r1=355653&r2=355654&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h (original) +++ lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Thu Mar 7 15:37:46 2019 @@ -37,7 +37,9 @@ void log_append(llvm::raw_string_ostream 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) { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits