Index: tools/gold/gold-plugin.cpp =================================================================== --- tools/gold/gold-plugin.cpp +++ tools/gold/gold-plugin.cpp @@ -447,8 +447,8 @@ ld_plugin_level Level; switch (DI.getSeverity()) { case DS_Error: - message(LDPL_FATAL, "LLVM gold plugin has failed to create LTO module: %s", - ErrStorage.c_str()); + Level = LDPL_FATAL; + break; case DS_Warning: Level = LDPL_WARNING; break;