[clang] [clang][nullability] Don't discard expression state before end of full-expression. (PR #82611)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 09:17:10 PST 2024


================
@@ -94,6 +94,38 @@ static llvm::BitVector findReachableBlocks(const CFG &Cfg) {
   return BlockReachable;
 }
 
+static llvm::DenseSet<const CFGBlock *>
+buildContainsExprConsumedInDifferentBlock(
+    const CFG &Cfg,
+    const llvm::DenseMap<const Stmt *, const CFGBlock *> &StmtToBlock) {
+  llvm::DenseSet<const CFGBlock *> Result;
----------------
Xazax-hun wrote:

Alternatively, could be a bitset that contains the block ids. Although, since we probably expect this set to be sparse/small, maybe the current solution is better.

https://github.com/llvm/llvm-project/pull/82611


More information about the cfe-commits mailing list