summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-02 23:16:26 +0000
committerDan Gohman <gohman@apple.com>2010-11-02 23:16:26 +0000
commita8b6315cd71dd112178a2cde6d62aa65e25682c2 (patch)
tree950706cd60849d72116ab8ffb5df6e1a39e8b327 /llvm/lib/System/Unix
parentd40a439067a1405aaf3390468082460eec5f4138 (diff)
downloadbcm5719-llvm-a8b6315cd71dd112178a2cde6d62aa65e25682c2.tar.gz
bcm5719-llvm-a8b6315cd71dd112178a2cde6d62aa65e25682c2.zip
Simplify.
llvm-svn: 118110
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Path.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index 15cbcab1b9a..b7afb8536d5 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/lib/System/Unix/Path.inc
@@ -692,8 +692,7 @@ Path::createDirectoryOnDisk( bool create_parents, std::string* ErrMsg ) {
pathname[lastchar] = '\0';
if (createDirectoryHelper(&pathname[0], &pathname[lastchar], create_parents))
- return MakeErrMsg(ErrMsg,
- std::string(pathname) + ": can't create directory");
+ return MakeErrMsg(ErrMsg, pathname + ": can't create directory");
return false;
}
OpenPOWER on IntegriCloud