[lld] r291811 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 13:05:48 PST 2017
Author: ruiu
Date: Thu Jan 12 15:05:48 2017
New Revision: 291811
URL: http://llvm.org/viewvc/llvm-project?rev=291811&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/Error.h
Modified: lld/trunk/ELF/Error.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.h?rev=291811&r1=291810&r2=291811&view=diff
==============================================================================
--- lld/trunk/ELF/Error.h (original)
+++ lld/trunk/ELF/Error.h Thu Jan 12 15:05:48 2017
@@ -56,11 +56,7 @@ template <class T> T check(ErrorOr<T> E)
template <class T> T check(Expected<T> E) {
if (!E)
- handleAllErrors(std::move(E.takeError()),
- [](llvm::ErrorInfoBase &EIB) -> Error {
- fatal(EIB.message());
- return Error::success();
- });
+ fatal(llvm::toString(E.takeError()));
return std::move(*E);
}
More information about the llvm-commits
mailing list