[clang] [C++20] [Modules] Don't profiling the callee of CXXFoldExpr (PR #190732)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 23:59:39 PDT 2026


================
@@ -2390,7 +2390,35 @@ void StmtProfiler::VisitMaterializeTemporaryExpr(
 }
 
 void StmtProfiler::VisitCXXFoldExpr(const CXXFoldExpr *S) {
-  VisitExpr(S);
+  // For CXXFoldExpr, not profile the call expression as it may
+  // be affected by the context. e.g.,
----------------
cor3ntin wrote:

```suggestion
  // For CXXFoldExpr, do not profile the call expression as it may
  // be affected by the context. e.g.,
```

What is "the call expression" here?

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


More information about the cfe-commits mailing list