[PATCH] D24905: Fix unreachable code false positive, vardecl in switch
Daniel Marjamäki via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 28 01:24:38 PDT 2016
danielmarjamaki marked an inline comment as done.
================
Comment at: lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp:195
@@ +194,3 @@
+ if (Optional<CFGStmt> S = I->getAs<CFGStmt>()) {
+ if (!isa<DeclStmt>(S->getStmt()))
+ return S->getStmt();
----------------
yes I agree.
https://reviews.llvm.org/D24905
More information about the cfe-commits
mailing list