summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-05-06 03:42:21 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-05-06 03:42:21 +0000
commit25f08069ae1459bc03a7a2f8bc16e96da918b17a (patch)
tree20236844e869058fbc50ff09a4ddc7c92528617c /llvm/lib/System
parentbc51f71c5bacb8b851807e96c4a2033f7c91c76d (diff)
downloadbcm5719-llvm-25f08069ae1459bc03a7a2f8bc16e96da918b17a.tar.gz
bcm5719-llvm-25f08069ae1459bc03a7a2f8bc16e96da918b17a.zip
Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems with
llvm-ar being unable to rename files. llvm-svn: 50702
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc
index 357cb2f27ee..ce5fe2a3a5f 100644
--- a/llvm/lib/System/Win32/Path.inc
+++ b/llvm/lib/System/Win32/Path.inc
@@ -672,7 +672,7 @@ Path::renamePathOnDisk(const Path& newName, std::string* ErrMsg) {
if (!MoveFileEx(path.c_str(), newName.c_str(), MOVEFILE_REPLACE_EXISTING))
return MakeErrMsg(ErrMsg, "Can't move '" + path + "' to '" + newName.path
+ "': ");
- return true;
+ return false;
}
bool
OpenPOWER on IntegriCloud