llvm-project
6bb4ce0f - Silence spurious -Wnontrivial-memcall warnings in C mode (#137429)

Commit
233 days ago
Silence spurious -Wnontrivial-memcall warnings in C mode (#137429) clang currently issues a warning when memset is used on a struct that contains an address-discriminated pointer field, even though this is entirely valid behavior. For example: ``` struct S { int * __ptrauth(1, 1, 100) p; } s; memset(&s, 0, sizeof(struct S)); ``` Only allow the warning to be emitted in C++ mode to silence the warning. rdar://142495870
Author
Parents
Loading