commit | dd01bd38a83c27ce51626002dfad512e086a1075 | [log] [tgz] |
---|---|---|
author | Louis Dionne <ldionne.2@gmail.com> | Fri Dec 11 12:20:06 2020 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Dec 14 22:39:47 2020 -0800 |
tree | 5185071963aa7c10c1747a14d055b1cfae5c81c0 | |
parent | 2e93a7b79a7b18366840b3928b01514ac8923019 [diff] |
[libc++] Refactor allocate_shared to use an allocation guard This commit is a step towards making it easier to add support for arrays in allocate_shared. Adding support for arrays will require writing multiple functions, and the current complexity of writing allocate_shared is prohibitive for understanding. Differential Revision: https://reviews.llvm.org/D93130 GitOrigin-RevId: 19d57b5c42b4e80fcbd5b6a2167e4a5f4f7b64c3