Fix gold plugin after Error API changes

llvm-svn: 286571
This commit is contained in:
Mehdi Amini 2016-11-11 06:04:30 +00:00
parent 5923864597
commit 48f296059d
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ static void diagnosticHandler(const DiagnosticInfo &DI) {
}
static void check(Error E, std::string Msg = "LLVM gold plugin") {
handleAllErrors(std::move(E), [&](ErrorInfoBase &EIB) {
handleAllErrors(std::move(E), [&](ErrorInfoBase &EIB) -> Error {
message(LDPL_FATAL, "%s: %s", Msg.c_str(), EIB.message().c_str());
return Error::success();
});