From a8b6315cd71dd112178a2cde6d62aa65e25682c2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 2 Nov 2010 23:16:26 +0000 Subject: Simplify. llvm-svn: 118110 --- llvm/lib/System/Unix/Path.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/System/Unix') 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; } -- cgit v1.2.3