We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a738e commit a03db21Copy full SHA for a03db21
llvm/lib/Support/Windows/Path.inc
@@ -1007,9 +1007,11 @@ void mapped_file_region::unmapImpl() {
1007
void mapped_file_region::dontNeedImpl() {}
1008
1009
std::error_code mapped_file_region::sync() const {
1010
- if (::FlushViewOfFile(Mapping, 0))
1011
- return std::error_code();
1012
- return mapWindowsError(::GetLastError());
+ if (!::FlushViewOfFile(Mapping, Size))
+ return mapWindowsError(GetLastError());
+ if (!::FlushFileBuffers(FileHandle))
1013
1014
+ return std::error_code();
1015
}
1016
1017
int mapped_file_region::alignment() {
0 commit comments