projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b4b06
)
[support] mapped_file_region: and fix the windows code too
author
Roman Lebedev
<lebedev.ri@gmail.com>
Wed, 27 Sep 2017 17:24:34 +0000
(17:24 +0000)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Wed, 27 Sep 2017 17:24:34 +0000
(17:24 +0000)
Followup for r314312 / r314313
Sorry, i really failed to fully grep all the codebase :/
llvm-svn: 314321
llvm/lib/Support/Windows/Path.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Windows/Path.inc
b/llvm/lib/Support/Windows/Path.inc
index
daa5e9b
..
c54bded
100644
(file)
--- a/
llvm/lib/Support/Windows/Path.inc
+++ b/
llvm/lib/Support/Windows/Path.inc
@@
-700,7
+700,7
@@
std::error_code mapped_file_region::init(int FD, uint64_t Offset,
return std::error_code();
}
-mapped_file_region::mapped_file_region(int fd, mapmode mode,
uint64
_t length,
+mapped_file_region::mapped_file_region(int fd, mapmode mode,
size
_t length,
uint64_t offset, std::error_code &ec)
: Size(length), Mapping() {
ec = init(fd, offset, mode);
@@
-713,7
+713,7
@@
mapped_file_region::~mapped_file_region() {
::UnmapViewOfFile(Mapping);
}
-
uint64
_t mapped_file_region::size() const {
+
size
_t mapped_file_region::size() const {
assert(Mapping && "Mapping failed but used anyway!");
return Size;
}