Enable noundef analysis (-enable-noundef-analysis) via the -fsanitize-memory-param-retval clang flag.
This completes the work found in:
Depends on D116633
Paths
| Differential D117293
enable noundef analysis with -fsanitize-memory-param-retval ClosedPublic Authored by kda on Jan 14 2022, 2:16 AM.
Details Summary Enable noundef analysis (-enable-noundef-analysis) via the -fsanitize-memory-param-retval clang flag. Depends on D116633
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 14 2022, 2:16 AM Comment Actions Nice!
It's too late for this set of patches, but phabricator supports "Depends on" comments (I guess only of the first patch upload), and manual editing of "parent/child" revisions. Check "Edit Related Revisions..." in the top right corner.
This revision is now accepted and ready to land.Jan 14 2022, 7:47 AM Comment Actions Just noticed, -enable-noundef-analysis is missing tests undef llvm/llvm-project/clang/test/Driver/ Comment Actions
Actually noundef is not f_opt, and I am not sure how or do we need to test ImpliedByAnyOf in Driver. Comment Actions
I added "Depends On: D116633" (but I am confused because it appears crossed out.) Comment Actions
Crossed out means submitted. It's OK. Comment Actions
The CodeGen tests cover these interactions. Closed by commit rG0f93448235fe: enable noundef analysis with -fsanitize-memory-param-retval (authored by kda). · Explain WhyJan 14 2022, 5:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 400207 clang/include/clang/Driver/Options.td
clang/test/CodeGen/attr-noundef.cpp
clang/test/CodeGen/indirect-noundef.cpp
clang/test/CodeGen/msan-param-retval.c
compiler-rt/test/msan/noundef_analysis.cpp
|