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

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Thu May 7 20:12:48 PDT 2026


================
@@ -71,9 +69,4 @@ export namespace std {
   using std::operator&&;
 }
 
-#ifdef SKIP_ODR_CHECK_IN_GMF
 // expected-no-diagnostics
-#else
-// expected-error@* {{has different definitions in different modules; first difference is defined here found data member '_S_copy_ctor' with an initializer}}
-// expected-note@* {{but in 'a.<global>' found data member '_S_copy_ctor' with a different initializer}}
-#endif
----------------
mizvekov wrote:

Thanks!

This test file is also testing the same bug, I don't see anything else going on here, so I think we could get rid of it as well.

Even then, besides:
* The naming is neither the GitHub issue nor something that describes well the test or the problem.
* It's running multiple frontend invocations that don't make any difference. For example, `-fskip-odr-check-in-gmf` is not a factor here, and the defines `SKIP_ODR_CHECK_IN_GMF` and `REDUCED` are not used in the file at all.

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


More information about the cfe-commits mailing list