diff options
Diffstat (limited to 'include/llvm/Support/ErrorOr.h')
-rw-r--r-- | include/llvm/Support/ErrorOr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/ErrorOr.h b/include/llvm/Support/ErrorOr.h index becd95780e..625574b88b 100644 --- a/include/llvm/Support/ErrorOr.h +++ b/include/llvm/Support/ErrorOr.h @@ -163,7 +163,7 @@ public: const_reference get() const { return const_cast<ErrorOr<T> >(this)->get(); } error_code getError() const { - return HasError ? *getErrorStorage() : error_code::success(); + return HasError ? *getErrorStorage() : error_code(); } pointer operator ->() { |