[PATCH] D77836: [Attribute] Fix noderef attribute false-negatives

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 12 11:44:43 PDT 2020


aaron.ballman added inline comments.


================
Comment at: clang/test/Frontend/noderef.c:211
+
+int *implicit_cast(NODEREF int *x) {
+  return (int *)x; // expected-warning{{casting to dereferenceable pointer removes 'noderef' attribute}}
----------------
The name of the function is a bit odd given that there's an explicit cast.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77836





More information about the cfe-commits mailing list