forked from OSchip/llvm-project
COFF: Add noexcept to std::error_category::name
This fixes build error with gcc. llvm-svn: 238732
This commit is contained in:
parent
f04e3862ca
commit
c44223ed96
|
@ -26,7 +26,7 @@ enum class LLDError {
|
|||
|
||||
class LLDErrorCategory : public std::error_category {
|
||||
public:
|
||||
const char *name() const override { return "lld"; }
|
||||
const char *name() const noexcept override { return "lld"; }
|
||||
|
||||
std::string message(int EV) const override {
|
||||
switch (static_cast<LLDError>(EV)) {
|
||||
|
|
Loading…
Reference in New Issue