Searched refs:getErrorStorage (Results 1 – 2 of 2) 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()
469 new (getErrorStorage()) error_type(Err.takePayload()); in Expected()525 getErrorStorage()->~error_type(); in ~Expected()550 return HasError && (*getErrorStorage())->template isA<ErrT>(); in errorIsA()561 return HasError ? Error(std::move(*getErrorStorage())) : Error::success(); in takeError()609 new (getErrorStorage()) error_type(std::move(*Other.getErrorStorage())); in moveConstruct()640 error_type *getErrorStorage() { in getErrorStorage() function645 const error_type *getErrorStorage() const { in getErrorStorage() function664 (*getErrorStorage())->log(dbgs()); in fatalUncheckedExpected()