summaryrefslogtreecommitdiff
path: root/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
commit9e2e0c39e7d9b2d5ed84d6e836788967540b75b2 (patch)
tree88f6ca953f314653e5a1c81e4ad1598edd4131e4 /lib/System/Unix
parent45c21ff044ce72a25d7d654f8bbceffe41d6f70b (diff)
downloadllvm-9e2e0c39e7d9b2d5ed84d6e836788967540b75b2.tar.gz
llvm-9e2e0c39e7d9b2d5ed84d6e836788967540b75b2.tar.bz2
llvm-9e2e0c39e7d9b2d5ed84d6e836788967540b75b2.tar.xz
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Path.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 15cbcab1b9..b7afb8536d 100644
--- a/lib/System/Unix/Path.inc
+++ b/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;
}