[PATCH] D124701: [clang] Honor __attribute__((no_builtin("foo"))) on functions

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 17 06:50:58 PDT 2022


steplong added inline comments.


================
Comment at: clang/test/CodeGen/no-builtin-2.c:51
+// CHECK:   {{.*}}call {{.*}} @memmove
+void foo4(char *s, char *d, size_t n) __attribute__((no_builtin("*"))) {
+  bar(s);
----------------
hans wrote:
> In AttrDocs.td it says the wildcard case is spelled "__attribute__((no_builtin))".
Ah whoops, missed that. I don't think I need the changes in SemaDeclAttr.cpp then. Thanks for catching this!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124701



More information about the cfe-commits mailing list