HomePhabricator

Add, and infer, a nofree function attribute

Description

Add, and infer, a nofree function attribute

This patch adds a function attribute, nofree, to indicate that a function does
not, directly or indirectly, call a memory-deallocation function (e.g., free,
C++'s operator delete).

Reviewers: jdoerfert

Differential Revision: https://reviews.llvm.org/D49165

Details

Committed
homerdinJul 8 2019, 8:57 AM
Differential Revision
D49165: Add, and infer, a nofree function attribute
Parents
rL365335: [docs][llvm-readobj][llvm-readelf] Improve wording
Branches
Unknown
Tags
Unknown

Event Timeline

jdoerfert added inline comments.
/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
1408

Are these 4 lines leftover?