[PATCH] D82317: [Clang/Test]: Update tests where `noundef` attribute is necessary

Juneyoung Lee via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 29 09:19:39 PDT 2021


aqjune added a comment.
Herald added a subscriber: lxfind.

Hello all,
Is there a plan to enable `-enable-noundef-analysis` by default? It seems this patch is already addressing a lot of test cases.
Another good news is that DeadArgElim is also fixed by D98899 <https://reviews.llvm.org/D98899> to correctly drop UB-raising attributes such as noundef when replacing an unused argument with undef. This was an issue which is known to be problematic when the flag was activated.
I can make a patch based on this work instead if people want.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82317



More information about the cfe-commits mailing list