[PATCH] D38141: Annotate function parameters with attribute 'noescape'
Akira Hatanaka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 10:41:07 PDT 2017
ahatanak added a comment.
In https://reviews.llvm.org/D38141#877782, @kubamracek wrote:
> What happens when building this code with a compiler that doesn't understand `__attribute__((__noescape__))`? Is it just ignored?
clang will just ignore it and issue a warning ("unknown attribute '__noescape__' ignored").
It's possible to guard the declarations with 'noescape' using "__has_attribute(noescape)".
https://clang.llvm.org/docs/LanguageExtensions.html
https://reviews.llvm.org/D38141
More information about the llvm-commits
mailing list