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()153 return HasError ? *getErrorStorage() : std::error_code(); in getError()178 new (getErrorStorage()) std::error_code(Other.getError()); in copyConstruct()210 new (getErrorStorage()) std::error_code(Other.getError()); in moveConstruct()245 std::error_code *getErrorStorage() { in getErrorStorage() function250 const std::error_code *getErrorStorage() const { in getErrorStorage() function251 return const_cast<ErrorOr<T> *>(this)->getErrorStorage(); in getErrorStorage()
511 new (getErrorStorage()) error_type(Err.takePayload()); in Expected()566 getErrorStorage()->~error_type(); in ~Expected()601 return HasError && (*getErrorStorage())->template isA<ErrT>(); in errorIsA()612 return HasError ? Error(std::move(*getErrorStorage())) : Error::success(); in takeError()660 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage())); in moveConstruct()691 error_type *getErrorStorage() { in getErrorStorage() function696 const error_type *getErrorStorage() const { in getErrorStorage() function713 (*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