llvm-project
9d1dd9a2 - [Sema] Fix false positive warnings for misaligned member access (#150025)

Commit
127 days ago
[Sema] Fix false positive warnings for misaligned member access (#150025) These warnings are reported on a per expression basis, however some potential misaligned accesses are discarded before that happens. The problem is when a new expression starts while processing another expression. The new expression will end first and emit all potential misaligned accesses collected up to that point. That includes candidates that were found in the parent expression, even though they might have gotten discarded later. Fixed by checking if the candidate is located withing the currently processed expression. Fixes #144729
Author
Parents
Loading