summaryrefslogtreecommitdiff
path: root/lib/System
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
commit6f6021ecfe16238edc75f1b7df89245499f1a077 (patch)
treedbcc27480829285898792abf16fd35601bcf7ae6 /lib/System
parentb48a8fddbfcce11ff64f0d4b37c98a8036dac004 (diff)
downloadllvm-6f6021ecfe16238edc75f1b7df89245499f1a077.tar.gz
llvm-6f6021ecfe16238edc75f1b7df89245499f1a077.tar.bz2
llvm-6f6021ecfe16238edc75f1b7df89245499f1a077.tar.xz
Fix a copy+pasto.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Unix/Path.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 37ce00e6c0..15cbcab1b9 100644
--- a/lib/System/Unix/Path.inc
+++ b/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;