Silence warning about unused private variable.

llvm-svn: 325275
This commit is contained in:
Zachary Turner 2018-02-15 18:46:59 +00:00
parent acd8791c26
commit 2061ad2f83
1 changed files with 3 additions and 1 deletions

View File

@ -643,7 +643,9 @@ std::error_code mapped_file_region::init(int FD, uint64_t Offset,
mapped_file_region::mapped_file_region(int fd, mapmode mode, size_t length,
uint64_t offset, std::error_code &ec)
: Size(length), Mapping() {
: Size(length), Mapping(), FD(fd), Mode(mode) {
(void)FD;
(void)Mode;
ec = init(fd, offset, mode);
if (ec)
Mapping = nullptr;