[llvm-commits] [llvm] r118110 - /llvm/trunk/lib/System/Unix/Path.inc
Dan Gohman
gohman at apple.com
Tue Nov 2 16:16:26 PDT 2010
Author: djg
Date: Tue Nov 2 18:16:26 2010
New Revision: 118110
URL: http://llvm.org/viewvc/llvm-project?rev=118110&view=rev
Log:
Simplify.
Modified:
llvm/trunk/lib/System/Unix/Path.inc
Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=118110&r1=118109&r2=118110&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Tue Nov 2 18:16:26 2010
@@ -692,8 +692,7 @@
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;
}
More information about the llvm-commits
mailing list