Unbreak the MSVC build: add return to unimplemented functions.
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 20 Jun 2012 04:08:49 +0000 (04:08 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 20 Jun 2012 04:08:49 +0000 (04:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158788 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/PathV2.inc

index c79d8ab0aa67ca235669158be044ad592dbf8966..66eeab058f6285dd3e0d066d61f75bc40edd1abf 100644 (file)
@@ -793,10 +793,12 @@ error_code detail::directory_iterator_increment(detail::DirIterState &it) {
 error_code map_file_pages(const Twine &path, off_t file_offset, size_t size,  
                                             bool map_writable, void *&result) {
   assert(0 && "NOT IMPLEMENTED");
+  return windows_error::invalid_function;
 }
 
 error_code unmap_file_pages(void *base, size_t size) {
   assert(0 && "NOT IMPLEMENTED");
+  return windows_error::invalid_function;
 }