summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-02 22:56:51 +0000
committerDan Gohman <gohman@apple.com>2010-11-02 22:56:51 +0000
commit6e05d6c218c41e0047f13f5187bfe903fe751ee6 (patch)
tree9beefc2a664f61bb7ddf9dadf5b6d2273fe9bf64 /llvm/lib
parenta47bfef1bf01c96a322a3d7d567afec34546cebe (diff)
downloadbcm5719-llvm-6e05d6c218c41e0047f13f5187bfe903fe751ee6.tar.gz
bcm5719-llvm-6e05d6c218c41e0047f13f5187bfe903fe751ee6.zip
Fix a copy+pasto.
llvm-svn: 118106
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Path.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index 37ce00e6c0b..15cbcab1b9a 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/lib/System/Unix/Path.inc
@@ -143,7 +143,8 @@ Path::GetTemporaryDirectory(std::string *ErrMsg) {
// Linux and FreeBSD have it. Others probably won't.
char pathname[] = "/tmp/llvm_XXXXXX";
if (0 == mkdtemp(pathname)) {
- MakeErrMsg(ErrMsg, pathname + ": can't create temporary directory");
+ MakeErrMsg(ErrMsg,
+ std::string(pathname) + ": can't create temporary directory");
return Path();
}
Path result;
OpenPOWER on IntegriCloud