summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-readobj/Error.cpp2
-rw-r--r--tools/obj2yaml/Error.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-readobj/Error.cpp b/tools/llvm-readobj/Error.cpp
index 83ed6a7dfc..75c392e0f9 100644
--- a/tools/llvm-readobj/Error.cpp
+++ b/tools/llvm-readobj/Error.cpp
@@ -50,7 +50,7 @@ std::string _readobj_error_category::message(int ev) const {
error_condition _readobj_error_category::default_error_condition(int ev) const {
if (ev == readobj_error::success)
- return errc::success;
+ return error_condition();
return errc::invalid_argument;
}
diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp
index 7be468dd56..0003b7bb8d 100644
--- a/tools/obj2yaml/Error.cpp
+++ b/tools/obj2yaml/Error.cpp
@@ -42,7 +42,7 @@ std::string _obj2yaml_error_category::message(int ev) const {
error_condition
_obj2yaml_error_category::default_error_condition(int ev) const {
if (ev == obj2yaml_error::success)
- return errc::success;
+ return error_condition();
return errc::invalid_argument;
}