================
@@ -239,9 +239,12 @@ struct MapRegionCounters : public 
RecursiveASTVisitor<MapRegionCounters> {
     if (MCDCMaxCond == 0)
       return true;
 
-    /// At the top of the logical operator nest, reset the number of 
conditions.
-    if (LogOpStack.empty())
+    /// At the top of the logical operator nest, reset the number of 
conditions,
+    /// also forget previously seen split nesting cases.
+    if (LogOpStack.empty()) {
       NumCond = 0;
+      SplitNestedLogicalOp = false;
----------------
evodius96 wrote:

Reset of SplitNestedLogicalOp could also probably be done in 
dataTraverseStmtPost() at the point where the diagnostic is emitted, but this 
is OK.

https://github.com/llvm/llvm-project/pull/82464
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to