[PATCH] D97045: [BuildLibCalls] Add noundef to allocator fns' size

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 05:05:47 PST 2021


aqjune added a comment.

I wanted to add noundef to C++ new operators, but a former discussion said attributes of these should be inserted by the frontend.
Since I wasn't friendly with the clang code, I found `Sema::FindAllocationFunctions` which lists possible new operator functions and matches the right one, but couldn't find the place that actually adds attributes to these.
A question is - there is already an ongoing effort for adding noundef to C/C++ function arguments, and would it automatically resolve this case? Otherwise, where should I update to add noundef to new operator arguments?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97045



More information about the llvm-commits mailing list