From e8c807fade5ff75ffe7f1395c20cfda0bc9480e3 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 8 Aug 2022 22:11:23 -0700 Subject: [PATCH] [llvm] Don't rely on C++17 deduction guide for array creation Seems like at least one bot (clang-ppc64-aix) is having trouble with the C++17 deduction guide for array creation. Specify the template arguments explicitly. --- llvm/include/llvm/Support/FormatProviders.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Support/FormatProviders.h b/llvm/include/llvm/Support/FormatProviders.h index 7cfce29..2bdc316 100644 --- a/llvm/include/llvm/Support/FormatProviders.h +++ b/llvm/include/llvm/Support/FormatProviders.h @@ -369,7 +369,7 @@ template class format_provider> { return Default; } - for (const char *D : std::array{"[]", "<>", "()"}) { + for (const char *D : std::array{"[]", "<>", "()"}) { if (Style.front() != D[0]) continue; size_t End = Style.find_first_of(D[1]); -- 2.7.4