[PATCH] D117091: [Clang] Add attributes alloc_size and alloc_align to mm_malloc
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 30 10:48:22 PST 2022
xbolva00 added a comment.
In D117091#3272594 <https://reviews.llvm.org/D117091#3272594>, @jdoerfert wrote:
> Don't test with O1 <https://reviews.llvm.org/owners/package/1/>, add the dummy include folder to the include path (`clang/test/Headers/Inputs/include`), stdlib.h is already there, malloc.h is not and needs to be created.
>
> See `clang/test/Headers/nvptx_device_cmath_functions.c` for an example.
Need -O1, with -O0 no assumption is emitted.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117091/new/
https://reviews.llvm.org/D117091
More information about the cfe-commits
mailing list