[PATCH] D56941: Fix a bug that file size is sometimes silently rounded up to the page size.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 22 10:09:56 PST 2019


ruiu added a comment.

Good point. I found that that's very confusing too. Maybe `size()` should return the requested size instead of the actual allocated size, and if there's a need to get an allocated size, we can provide it as a different member function such as `allocatedSize()` or something. Let me take a look.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56941/new/

https://reviews.llvm.org/D56941





More information about the llvm-commits mailing list