commit | 74db8e49f7241b5216d92a1c1497eb1255e8b36d | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Mon Dec 09 13:02:24 2019 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Aug 27 23:56:25 2020 -0700 |
tree | 92b8314210621f73a6e3720474a41757da3cdb67 | |
parent | d5acfb03710e90535435cbc77f5f3404a65a91d6 [diff] |
scudo: Move getChunkFromBlock() allocated check into caller. NFCI. With tag-on-free we will need to get the chunk of a deallocated block. Change getChunkFromBlock() so that it doesn't check that the chunk is allocated, and move the check into the caller, so that it can be reused for this purpose. Differential Revision: https://reviews.llvm.org/D71291 GitOrigin-RevId: e966416ff15178bf982430085be9ae69e5a511fa