There is no std::errc::success, remove the llvm one.
[oota-llvm.git] / lib / ProfileData / InstrProf.cpp
index de2b13dafd028e44d24899ce145820294d3c2d70..60a8efb2a6ad7ed13fed380fb0de0b7e18cd65de 100644 (file)
@@ -54,7 +54,7 @@ class InstrProfErrorCategoryType : public error_category {
   }
   error_condition default_error_condition(int EV) const override {
     if (EV == instrprof_error::success)
-      return errc::success;
+      return error_condition();
     return errc::invalid_argument;
   }
 };