Skip to content

Commit

Permalink
fix serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cor3ntin committed Oct 5, 2024
1 parent 2b1be03 commit 52a8112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Sema/SemaConcept.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#define LLVM_CLANG_SEMA_SEMACONCEPT_H
#include "clang/AST/ASTConcept.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Expr.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/PointerUnion.h"
Expand Down
8 changes: 5 additions & 3 deletions clang/lib/AST/DeclTemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,9 +866,11 @@ TemplateTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC,

TemplateTemplateParmDecl *
TemplateTemplateParmDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) {
return new (C, ID)
TemplateTemplateParmDecl(nullptr, SourceLocation(), 0, 0, nullptr,
TemplateNameKind::TNK_Type_template, false, nullptr, nullptr);
return new (C, ID) TemplateTemplateParmDecl(
/*DC=*/nullptr, SourceLocation(), /*Depth=*/0, /*Index=*/0,
/*ParameterPack=*/false,
/*Id=*/nullptr, TemplateNameKind::TNK_Type_template, /*Typename=*/false,
/*Params=*/nullptr);
}

TemplateTemplateParmDecl *
Expand Down

0 comments on commit 52a8112

Please sign in to comment.