[all-commits] [llvm/llvm-project] c74ab8: [clang] Omit most AttributedStatements from the CFG
Nico Weber via All-commits
all-commits at lists.llvm.org
Tue Oct 12 06:16:00 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c74ab84ea23f497ac83501473220cd9cfefe81e8
https://github.com/llvm/llvm-project/commit/c74ab84ea23f497ac83501473220cd9cfefe81e8
Author: Nico Weber <thakis at chromium.org>
Date: 2021-10-12 (Tue, 12 Oct 2021)
Changed paths:
M clang/lib/Analysis/CFG.cpp
M clang/test/SemaCXX/switch-implicit-fallthrough.cpp
M clang/test/SemaCXX/unreachable-code.cpp
Log Message:
-----------
[clang] Omit most AttributedStatements from the CFG
`[[clang::fallthrough]]` has meaning for the CFG, but all other
StmtAttrs we currently have don't. So omit them, as AttributedStatements
with children cause several issues and there's no benefit in including
them.
Fixes PR52103 and PR49454. See PR52103 for details.
Differential Revision: https://reviews.llvm.org/D111568
More information about the All-commits
mailing list