Searched refs:getErrorStorage (Results 1 – 3 of 3) sorted by relevance
79 new (getErrorStorage()) std::error_code(make_error_code(ErrorCode)); in HasError()83 new (getErrorStorage()) std::error_code(EC); in ErrorOr()154 return HasError ? *getErrorStorage() : std::error_code(); in getError()179 new (getErrorStorage()) std::error_code(Other.getError()); in copyConstruct()211 new (getErrorStorage()) std::error_code(Other.getError()); in moveConstruct()246 std::error_code *getErrorStorage() { in getErrorStorage() function251 const std::error_code *getErrorStorage() const { in getErrorStorage() function252 return const_cast<ErrorOr<T> *>(this)->getErrorStorage(); in getErrorStorage()
500 new (getErrorStorage()) error_type(Err.takePayload()); in Expected()555 getErrorStorage()->~error_type(); in ~Expected()590 return HasError && (*getErrorStorage())->template isA<ErrT>(); in errorIsA()601 return HasError ? Error(std::move(*getErrorStorage())) : Error::success(); in takeError()649 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage())); in moveConstruct()680 error_type *getErrorStorage() { in getErrorStorage() function685 const error_type *getErrorStorage() const { in getErrorStorage() function702 (*getErrorStorage())->log(dbgs()); in fatalUncheckedExpected()
204 new (getErrorStorage()) error_type(Err.takePayload()); in Expected()248 getErrorStorage()->~error_type(); in ~Expected()260 return HasError && (*getErrorStorage())->template isFailureOfType<ErrT>(); in isFailureOfType()274 return HasError ? Error(std::move(*getErrorStorage())) : Error::success(); in takeError()320 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage())); in moveConstruct()351 error_type *getErrorStorage() { in getErrorStorage() function356 const error_type *getErrorStorage() const { in getErrorStorage() function