diff options
author | Raul Tambre <raul@tambre.ee> | 2024-06-03 20:56:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 20:56:59 +0300 |
commit | 2bc098b8aba089fe8328b3b8a8b6b6816cd5a908 (patch) | |
tree | 5ca84fba7f4324a4af35768a57017a27357eb297 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a088c61d5c409ec0b8994340866d5864ba913516 (diff) | |
download | llvm-2bc098b8aba089fe8328b3b8a8b6b6816cd5a908.zip llvm-2bc098b8aba089fe8328b3b8a8b6b6816cd5a908.tar.gz llvm-2bc098b8aba089fe8328b3b8a8b6b6816cd5a908.tar.bz2 |
[clang][Sema] Don't issue -Wcast-function-type-mismatch for enums with a matching underlying type (#87793)
Enums are passed as their underlying integral type so they're ABI compatible if the size matches.
Useful with C APIs that pass user-controlled values to callbacks that can be made type safe by using enumerations (e.g. GStreamer).
Discovered internally in some code after 999d4f840777bf8de26d45947192aa0728edc0fb.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions