[PATCH] D117600: [CGCall] Annotate operator new with inaccessiblememonly if AssumeSaneOperatorNew is on

Bryce Wilson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 26 10:58:44 PST 2022


Bryce-MW added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:2071
           RetAttrs.addAttribute(llvm::Attribute::NoAlias);
+          FuncAttrs.addAttribute("inaccessiblememonly");
+        }
----------------
nikic wrote:
> This should be `Attribute::InacccessibleMemOnly`. It's not a string attribute.
Thanks, I tried to look for a list but I didn't have any luck (and my IDE was having trouble loading the CMake project so I couldn't jump to definition on another attribute).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117600



More information about the cfe-commits mailing list