diff options
Diffstat (limited to 'include/llvm/Support/system_error.h')
-rw-r--r-- | include/llvm/Support/system_error.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/system_error.h b/include/llvm/Support/system_error.h index 2c15b69c94..b30973271c 100644 --- a/include/llvm/Support/system_error.h +++ b/include/llvm/Support/system_error.h @@ -738,6 +738,10 @@ class error_code { public: error_code() : _val_(0), _cat_(&system_category()) {} + static error_code success() { + return error_code(); + } + error_code(int _val, const error_category& _cat) : _val_(_val), _cat_(&_cat) {} |