[clang] [clang][CodeGen] Keep processing the rest of AST after encountering unsupported MC/DC expressions (PR #82464)

Alan Phipps via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 22 09:27:38 PST 2024


================
@@ -292,7 +295,7 @@ struct MapRegionCounters : public RecursiveASTVisitor<MapRegionCounters> {
                 "contains an operation with a nested boolean expression. "
                 "Expression will not be covered");
             Diag.Report(S->getBeginLoc(), DiagID);
-            return false;
+            return true;
----------------
evodius96 wrote:

Yes, I guess there is no value in returning false in either of these cases.  This is enough to avoid processing the data for the expression.

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


More information about the cfe-commits mailing list