[clang] [HLSL] Add implicit resource element type concepts to AST (PR #112600)

Damyan Pepper via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 17 11:33:11 PDT 2024


================
@@ -1078,10 +1078,10 @@ ConceptDecl *ConceptDecl::Create(ASTContext &C, DeclContext *DC,
                                  TemplateParameterList *Params,
                                  Expr *ConstraintExpr) {
   bool Invalid = AdoptTemplateParameterList(Params, DC);
-  auto *TD = new (C, DC) ConceptDecl(DC, L, Name, Params, ConstraintExpr);
+  auto *CD = new (C, DC) ConceptDecl(DC, L, Name, Params, ConstraintExpr);
   if (Invalid)
-    TD->setInvalidDecl();
-  return TD;
+    CD->setInvalidDecl();
+  return CD;
----------------
damyanp wrote:

This seems like a NFC change in DeclTemplate?  Might be better to pull this out into a separate PR.

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


More information about the cfe-commits mailing list