[clang] [Clang] Give empty template parameter mapping an empty MLTAL (PR #164051)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 19 00:05:57 PDT 2025


================
@@ -2050,6 +2059,11 @@ bool SubstituteParameterMappings::substitute(
   if (!N.hasParameterMapping())
     buildParameterMapping(N);
 
+  // Don't bother into substituting if we have determined the mapping maps to
+  // nothing.
----------------
cor3ntin wrote:

```suggestion
  // If the parameter mapping is empty, there is nothing to substitute.
```

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


More information about the cfe-commits mailing list