summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-17 22:24:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-17 22:24:06 +0000
commitb317987c2bc5b5a3df145f22b650197ba0caf2a7 (patch)
treefa510f58b1fca875ef6513f178d6883bf5c0e30c /tools
parent74aec35172e3278a57b474d0dec5d81302af932c (diff)
downloadllvm-b317987c2bc5b5a3df145f22b650197ba0caf2a7.tar.gz
llvm-b317987c2bc5b5a3df145f22b650197ba0caf2a7.tar.bz2
llvm-b317987c2bc5b5a3df145f22b650197ba0caf2a7.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp
index 722cac084d..27fe3acd0c 100644
--- a/tools/gold/gold-plugin.cpp
+++ b/tools/gold/gold-plugin.cpp
@@ -458,7 +458,7 @@ static ld_plugin_status cleanup_hook(void) {
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;