[PATCH] D111568: [clang] Omit most AttributedStatements from the CFG

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 11 11:21:52 PDT 2021


thakis created this revision.
thakis added reviewers: hans, aaron.ballman.
thakis requested review of this revision.

`[[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.


https://reviews.llvm.org/D111568

Files:
  clang/lib/Analysis/CFG.cpp
  clang/test/SemaCXX/switch-implicit-fallthrough.cpp
  clang/test/SemaCXX/unreachable-code.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111568.378740.patch
Type: text/x-patch
Size: 3544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211011/103f8e5a/attachment.bin>


More information about the cfe-commits mailing list