Simplify the error handling in llvm-lto a bit.