Skip to content

Commit

Permalink
Fix building with GCC5 after e64f99c
Browse files Browse the repository at this point in the history
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);
                                                                             ^
  • Loading branch information
zmodem committed May 4, 2020
1 parent 6c42814 commit 3c2c776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/support/Trace.h
Expand Up @@ -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.
Expand Down

0 comments on commit 3c2c776

Please sign in to comment.