[PATCH] D111210: [Analysis][CFG] Fix CFG building for standalone `CaseStmt`s.

2021-10-06 Thread Clement Courbet via Phabricator via cfe-commits
courbet updated this revision to Diff 377457. courbet added a comment. remove accidental paste Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D111210/new/ https://reviews.llvm.org/D111210 Files: clang/lib/Analysis/CFG.cpp clang/unittests/Analysi

[PATCH] D111210: [Analysis][CFG] Fix CFG building for standalone `CaseStmt`s.

2021-10-06 Thread Clement Courbet via Phabricator via cfe-commits
courbet created this revision. courbet added reviewers: Szelethus, NoQ. courbet requested review of this revision. Herald added a project: clang. One is supposed ot be able to create a CFG for any statement, as per the comment on `CFGBuilder::buildCFG`: "The AST can represent an arbitrary stateme