[llvm] r286571 - Fix gold plugin after Error API changes
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 22:04:31 PST 2016
Author: mehdi_amini
Date: Fri Nov 11 00:04:30 2016
New Revision: 286571
URL: http://llvm.org/viewvc/llvm-project?rev=286571&view=rev
Log:
Fix gold plugin after Error API changes
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=286571&r1=286570&r2=286571&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Fri Nov 11 00:04:30 2016
@@ -392,7 +392,7 @@ static void diagnosticHandler(const Diag
}
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();
});
More information about the llvm-commits
mailing list