aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Error.cpp')
-rw-r--r--llvm/lib/Support/Error.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp
index 6a81895..f2985de 100644
--- a/llvm/lib/Support/Error.cpp
+++ b/llvm/lib/Support/Error.cpp
@@ -20,7 +20,7 @@ namespace {
enum class ErrorErrorCode : int {
MultipleErrors = 1,
- UnconvertibleError
+ InconvertibleError
};
// FIXME: This class is only here to support the transition to llvm::Error. It
@@ -34,8 +34,8 @@ namespace {
switch (static_cast<ErrorErrorCode>(condition)) {
case ErrorErrorCode::MultipleErrors:
return "Multiple errors";
- case ErrorErrorCode::UnconvertibleError:
- return "Unconvertible error value. An error has occurred that could "
+ case ErrorErrorCode::InconvertibleError:
+ return "Inconvertible error value. An error has occurred that could "
"not be converted to a known std::error_code. Please file a "
"bug.";
}
@@ -61,8 +61,8 @@ std::error_code ErrorList::convertToErrorCode() const {
*ErrorErrorCat);
}
-std::error_code unconvertibleErrorCode() {
- return std::error_code(static_cast<int>(ErrorErrorCode::UnconvertibleError),
+std::error_code inconvertibleErrorCode() {
+ return std::error_code(static_cast<int>(ErrorErrorCode::InconvertibleError),
*ErrorErrorCat);
}
@@ -77,7 +77,7 @@ std::error_code errorToErrorCode(Error Err) {
handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) {
EC = EI.convertToErrorCode();
});
- if (EC == unconvertibleErrorCode())
+ if (EC == inconvertibleErrorCode())
report_fatal_error(EC.message());
return EC;
}