[llvm] r184138 - Fix the build with gcc 4.7 and -std=c++11.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 17 15:24:07 PDT 2013
Author: rafael
Date: Mon Jun 17 17:24:06 2013
New Revision: 184138
URL: http://llvm.org/viewvc/llvm-project?rev=184138&view=rev
Log:
Fix the build with gcc 4.7 and -std=c++11.
The error message was:
/home/espindola/llvm/llvm/tools/gold/gold-plugin.cpp: In function ‘ld_plugin_status cleanup_hook()’:
/home/espindola/llvm/llvm/tools/gold/gold-plugin.cpp:461:30: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
I will check if this was a clang or gcc issue.
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=184138&r1=184137&r2=184138&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Mon Jun 17 17:24:06 2013
@@ -458,7 +458,7 @@ static ld_plugin_status cleanup_hook(voi
error_code EC = sys::fs::remove(Cleanup[i]);
if (EC)
(*message)(LDPL_ERROR, "Failed to delete '%s': %s", Cleanup[i].c_str(),
- EC.message());
+ EC.message().c_str());
}
return LDPS_OK;
More information about the llvm-commits
mailing list