[clang] [coroutine] Suppress unreachable-code warning on coroutine statements. (PR #77454)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 06:22:25 PST 2024
================
@@ -493,26 +454,68 @@ bool DeadCodeScan::isDeadCodeRoot(const clang::CFGBlock *Block) {
return isDeadRoot;
}
-static bool isValidDeadStmt(const Stmt *S) {
+// Check if the given `DeadStmt` is a coroutine statement and is a substmt of
+// the coroutine statement.
----------------
usx95 wrote:
Could you also describe the second param CFGBlock ?
eg. `Block` is the CFGBlock containing the `DeadStmt`.
https://github.com/llvm/llvm-project/pull/77454
More information about the cfe-commits
mailing list