diff options
Diffstat (limited to 'lld/ELF/Error.cpp')
| -rw-r--r-- | lld/ELF/Error.cpp | 16 | 
1 files changed, 6 insertions, 10 deletions
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp index 9e42910915a..beda4af658c 100644 --- a/lld/ELF/Error.cpp +++ b/lld/ELF/Error.cpp @@ -31,18 +31,14 @@ void error(const Twine &Msg) {    HasError = true;  } -bool error(std::error_code EC, const Twine &Prefix) { -  if (!EC) -    return false; -  error(Prefix + ": " + EC.message()); -  return true; +void error(std::error_code EC, const Twine &Prefix) { +  if (EC) +    error(Prefix + ": " + EC.message());  } -bool error(std::error_code EC) { -  if (!EC) -    return false; -  error(EC.message()); -  return true; +void error(std::error_code EC) { +  if (EC) +    error(EC.message());  }  void fatal(const Twine &Msg) {  | 

