[PATCH] D101097: [Sema] Don't set BlockDecl's DoesNotEscape bit If the block is being passed to a function taking a reference parameter

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 23 21:38:11 PDT 2021


ahatanak added inline comments.


================
Comment at: clang/test/SemaObjCXX/noescape.mm:20
+template <class T>
+void noescapeFunc5(__attribute__((noescape)) T); // expected-warning {{'noescape' attribute only applies to pointer arguments}}
+template <class T>
----------------
I didn't realize clang rejects `noescape` on parameters of template functions. I think this should be fixed in a followup patch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101097/new/

https://reviews.llvm.org/D101097



More information about the cfe-commits mailing list