summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-readobj/Error.cpp2
-rw-r--r--llvm/tools/obj2yaml/Error.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-readobj/Error.cpp b/llvm/tools/llvm-readobj/Error.cpp
index 83ed6a7dfc0..75c392e0f9f 100644
--- a/llvm/tools/llvm-readobj/Error.cpp
+++ b/llvm/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/llvm/tools/obj2yaml/Error.cpp b/llvm/tools/obj2yaml/Error.cpp
index 7be468dd563..0003b7bb8d5 100644
--- a/llvm/tools/obj2yaml/Error.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud