summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:21:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-31 03:21:04 +0000
commita3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77 (patch)
treebdeb4c696c0db038fc60d44c5a107e79ff99910f /llvm/lib/ProfileData/InstrProf.cpp
parent3ae0620a45ea25a9e1062323a56a5717616b6bed (diff)
downloadbcm5719-llvm-a3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77.tar.gz
bcm5719-llvm-a3f2e3f01ea8a83a7dd549fdcd55db76c1f07d77.zip
There is no std::errc::success, remove the llvm one.
llvm-svn: 209960
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index de2b13dafd0..60a8efb2a6a 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/lib/ProfileData/InstrProf.cpp
@@ -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;
}
};
OpenPOWER on IntegriCloud