summaryrefslogtreecommitdiffstats
path: root/lld/COFF/Error.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/COFF/Error.h')
-rw-r--r--lld/COFF/Error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/Error.h b/lld/COFF/Error.h
index d2aa0c3d8a3..d2189b25ffd 100644
--- a/lld/COFF/Error.h
+++ b/lld/COFF/Error.h
@@ -16,7 +16,7 @@
namespace lld {
namespace coff {
-LLVM_ATTRIBUTE_NORETURN void error(const Twine &Msg);
+LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &Msg);
void check(std::error_code EC, const Twine &Prefix);
void check(llvm::Error E, const Twine &Prefix);
@@ -27,7 +27,7 @@ template <typename T> void check(const ErrorOr<T> &V, const Twine &Prefix) {
template <class T> T check(Expected<T> E, const Twine &Prefix) {
if (E)
return std::move(*E);
- error(E.takeError(), Prefix);
+ fatal(E.takeError(), Prefix);
return T();
}
OpenPOWER on IntegriCloud