mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Don't import error_condition into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,9 +52,10 @@ class InstrProfErrorCategoryType : public error_category {
|
||||
}
|
||||
llvm_unreachable("A value of instrprof_error has no message.");
|
||||
}
|
||||
error_condition default_error_condition(int EV) const LLVM_NOEXCEPT override {
|
||||
std::error_condition
|
||||
default_error_condition(int EV) const LLVM_NOEXCEPT override {
|
||||
if (static_cast<instrprof_error>(EV) == instrprof_error::success)
|
||||
return error_condition();
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user