Searched refs:ValueOrError (Results 1 – 2 of 2) sorted by relevance
35 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap() argument36 if (!ValueOrError) { in UnWrap()38 << llvm::toString(ValueOrError.takeError()) in UnWrap()43 return std::move(ValueOrError.get()); in UnWrap()
157 static inline T UnWrap(llvm::Expected<T> ValueOrError) { in UnWrap() argument158 if (!ValueOrError) { in UnWrap()160 << llvm::toString(ValueOrError.takeError()) in UnWrap()165 return std::move(ValueOrError.get()); in UnWrap()