This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][builtins] Enable more warnings in add_security_warnings
ClosedPublic

Authored by ahatanak on Sep 13 2022, 9:02 AM.

Details

Summary

Enable -Wsizeof-array-div and -Wsizeof-pointer-divcompiler.

Also, replace -Wmemset-transposed-args with -Wsuspicious-memaccess. The latter automatically enables the former and a few other warnings.

Diff Detail

Event Timeline

ahatanak created this revision.Sep 13 2022, 9:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 9:02 AM
ahatanak requested review of this revision.Sep 13 2022, 9:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 9:02 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
ahatanak abandoned this revision.Sep 13 2022, 9:12 AM
ahatanak reclaimed this revision.Sep 13 2022, 9:30 AM
compnerd accepted this revision.Sep 14 2022, 11:25 AM
This revision is now accepted and ready to land.Sep 14 2022, 11:25 AM