diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-07-16 14:04:08 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-07-16 14:04:08 +0000 |
commit | e7ff00846244c73836d8ef2fb7f6ffed3c00b60e (patch) | |
tree | 70646943a2d7fd3a10314e652f929bac7c165880 /lib/Support/Windows/Path.inc | |
parent | f0d0a1681a96f8c896d2ce3b1415c5d567cf5bb1 (diff) | |
download | external_llvm-e7ff00846244c73836d8ef2fb7f6ffed3c00b60e.zip external_llvm-e7ff00846244c73836d8ef2fb7f6ffed3c00b60e.tar.gz external_llvm-e7ff00846244c73836d8ef2fb7f6ffed3c00b60e.tar.bz2 |
[Support] Fix some warnings when self-hosting clang on Windows
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 5787636..5a62a60 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -756,7 +756,6 @@ error_code mapped_file_region::init(int FD, bool CloseFD, uint64_t Offset) { case readonly: flprotect = PAGE_READONLY; break; case readwrite: flprotect = PAGE_READWRITE; break; case priv: flprotect = PAGE_WRITECOPY; break; - default: llvm_unreachable("invalid mapping mode"); } FileMappingHandle = ::CreateFileMapping(FileHandle, @@ -780,7 +779,6 @@ error_code mapped_file_region::init(int FD, bool CloseFD, uint64_t Offset) { case readonly: dwDesiredAccess = FILE_MAP_READ; break; case readwrite: dwDesiredAccess = FILE_MAP_WRITE; break; case priv: dwDesiredAccess = FILE_MAP_COPY; break; - default: llvm_unreachable("invalid mapping mode"); } Mapping = ::MapViewOfFile(FileMappingHandle, dwDesiredAccess, |