There is no std::errc::success, remove the llvm one.
[oota-llvm.git] / tools / obj2yaml / Error.cpp
index 7be468dd563f9deac7798f572c358be62a79e0ab..0003b7bb8d539336bcd3dfb85d5ac8af2052eaea 100644 (file)
@@ -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;
 }