diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-05-06 03:42:21 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-05-06 03:42:21 +0000 |
commit | 5c632e904cb5b4c01b056b7db932fcde364a6912 (patch) | |
tree | b0f80051ef18b670a7bffb0d780c99448b438953 | |
parent | 9b34849a6ba605082822b5ec6416c67fabbf57a4 (diff) | |
download | external_llvm-5c632e904cb5b4c01b056b7db932fcde364a6912.zip external_llvm-5c632e904cb5b4c01b056b7db932fcde364a6912.tar.gz external_llvm-5c632e904cb5b4c01b056b7db932fcde364a6912.tar.bz2 |
Fix renamePathOnDisk on Win32, patch from David Leon. This fixes problems with
llvm-ar being unable to rename files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50702 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Win32/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index 357cb2f..ce5fe2a 100644 --- a/lib/System/Win32/Path.inc +++ b/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 |