aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorVladimir Vuksanovic <109677816+vvuksanovic@users.noreply.github.com>2025-08-14 15:14:43 +0200
committerGitHub <noreply@github.com>2025-08-14 06:14:43 -0700
commit9d1dd9a26445f55b0f60f008adbacd937c7aad14 (patch)
treebc9d6eaafd2be6e244c3e4b4871f090e9c899f9a /flang/lib/Frontend/CompilerInvocation.cpp
parent221139470542ac33d6624ee13ac7cceb63cae2e3 (diff)
downloadllvm-9d1dd9a26445f55b0f60f008adbacd937c7aad14.zip
llvm-9d1dd9a26445f55b0f60f008adbacd937c7aad14.tar.gz
llvm-9d1dd9a26445f55b0f60f008adbacd937c7aad14.tar.bz2
[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
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions