From 3c2c7760d9eea0236c5c54e8939b3901f4208835 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 4 May 2020 11:04:48 +0200 Subject: [PATCH] Fix building with GCC5 after e64f99c51a8e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was failing with: /work/llvm.monorepo/clang-tools-extra/clangd/ClangdServer.cpp: In lambda function: /work/llvm.monorepo/clang-tools-extra/clangd/ClangdServer.cpp:374:75: error: could not convert ‘(const char*)""’ from ‘const char*’ to ‘llvm::StringLiteral’ trace::Metric::Distribution); ^ --- clang-tools-extra/clangd/support/Trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/support/Trace.h b/clang-tools-extra/clangd/support/Trace.h index c027595b85ed3..90a11bb1feb48 100644 --- a/clang-tools-extra/clangd/support/Trace.h +++ b/clang-tools-extra/clangd/support/Trace.h @@ -52,7 +52,7 @@ struct Metric { Distribution, }; constexpr Metric(llvm::StringLiteral Name, MetricType Type, - llvm::StringLiteral LabelName = "") + llvm::StringLiteral LabelName = llvm::StringLiteral("")) : Name(Name), Type(Type), LabelName(LabelName) {} /// Records a measurement for this metric to active tracer.