[PATCH] D157737: [Lint] Permit aliasing noalias and readnone arguments

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 10:46:35 PDT 2023


bjope added inline comments.


================
Comment at: llvm/lib/Analysis/Lint.cpp:240
+            // dereferenced anyway.
+            if (F->hasParamAttribute(ArgNo, Attribute::ReadNone))
+              continue;
----------------
Maybe we need to check for NoCapture as well (that would be a bit more defensive at least)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157737



More information about the llvm-commits mailing list