diff options
Diffstat (limited to 'lib/System/Unix/Path.inc')
-rw-r--r-- | lib/System/Unix/Path.inc | 3 |
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; |