[clang] [clang-tools-extra] [llvm] [clang] WIP: Improved Context Declaration tracking (PR #107942)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 10 08:13:47 PDT 2024


================
@@ -961,6 +961,7 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction(
 
   if (MLTAL.getNumSubstitutedLevels() == 0)
     return ConstrExpr;
+  MLTAL.setKind(TemplateSubstitutionKind::Rewrite);
----------------
zyn0217 wrote:

I remember I had tried using RewriteKind while fixing the mismatched constraint issue. But that turned out to cause some regressions/crashes in the end. Don't know what kind of situation it would be with this patch.

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


More information about the cfe-commits mailing list