Fix a copy+pasto.

llvm-svn: 118106
This commit is contained in:
Dan Gohman 2010-11-02 22:56:51 +00:00
parent 1c41b20c57
commit 1250781030

View File

@ -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;