From 21b013ebc159a0a85fa96de804dc4334c88d314f Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Wed, 27 Sep 2017 16:08:33 +0000 Subject: [PATCH] [Support] mapped_file_region::size() returns size_t Fixup last commit, found by clang-stage1-cmake-RA-incremental bot. llvm-svn: 314313 --- llvm/lib/Support/Unix/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index e1971322bb28..d0bb6a4fffbc 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -654,7 +654,7 @@ mapped_file_region::~mapped_file_region() { ::munmap(Mapping, Size); } -uint64_t mapped_file_region::size() const { +size_t mapped_file_region::size() const { assert(Mapping && "Mapping failed but used anyway!"); return Size; }