From 0292ddc711444574b3331e9adf50abf42c7dcaa0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 11 Apr 2020 15:11:44 +0200 Subject: [PATCH] [FormatVariadic] Put back return type in an attempt to make GCC happy --- llvm/include/llvm/Support/FormatVariadic.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/FormatVariadic.h b/llvm/include/llvm/Support/FormatVariadic.h index 60ea075..16debe2 100644 --- a/llvm/include/llvm/Support/FormatVariadic.h +++ b/llvm/include/llvm/Support/FormatVariadic.h @@ -246,7 +246,9 @@ public: // assertion. Otherwise, it will try to do something reasonable, but in general // the details of what that is are undefined. // -template inline auto formatv(const char *Fmt, Ts &&... Vals) { +template +inline auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object(Vals))...))> { using ParamTuple = decltype( std::make_tuple(detail::build_format_adapter(std::forward(Vals))...)); return formatv_object( -- 2.7.4