commit | bce112c9e9dbd108b06a01dea2f8f0c0948ba697 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Tue Nov 28 00:12:44 2017 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue Nov 28 00:12:44 2017 +0000 |
tree | 02972f94a8c3d0eba8e05673a6b6ed932a618a2b | |
parent | dbd4a7fecc20668ac2a53886a9e552cf0ec96ccc [diff] [blame] |
Add an F_Delete flag. For now this only changes the handle Access. llvm-svn: 319121
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index dceaaa1..113f259 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc
@@ -1031,6 +1031,8 @@ DWORD Access = GENERIC_WRITE; if (Flags & F_RW) Access |= GENERIC_READ; + if (Flags & F_Delete) + Access |= DELETE; HANDLE H = ::CreateFileW(PathUTF16.begin(), Access,