Add missing error handling in llvm-lto
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 15 Mar 2016 20:17:55 +0000 (20:17 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 15 Mar 2016 20:17:55 +0000 (20:17 +0000)
commitef156c6701170a3e52cbc710b036b6fb133829bd
tree424542c00a6228eaa7829c38667847b3e327c762
parent1396809b17f330e7bd1ff528bcd529796ddb207b
Add missing error handling in llvm-lto

Annoyingly, ErrorOr allows to *not check* the error when things go
well. It will crash badly when there is an error though. It should
runtime assert when it is used without being checked!

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 263577
llvm/tools/llvm-lto/llvm-lto.cpp