================
@@ -1373,7 +1381,7 @@ class FallthroughMapper : public
DynamicRecursiveASTVisitor {
// case X: {} case Y:
// case X: ; case Y:
if (const SwitchCase *SW = dyn_cast_or_null<SwitchCase>(B.getLabel()))
- if (!isa<SwitchCase>(SW->getSubStmt()))
+ if (!isa<SwitchCase>(stripAttributedStmts(SW->getSubStmt())))
----------------
Adinesh-Reddy wrote:
clang treats {} and ; as empty code blocks,since we already unwrapping the
attributed and checking ,we dont need to check at getLastStmt
https://github.com/llvm/llvm-project/pull/234848
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits