@@ -7969,11 +7969,10 @@ TypedefDecl *ASTContext::getCFConstantStringDecl() const {
79697969
79707970 // Create fields
79717971 for (unsigned i = 0; i < Count; ++i) {
7972- FieldDecl *Field =
7973- FieldDecl::Create(*this, CFConstantStringTagDecl, SourceLocation(),
7974- SourceLocation(), &Idents.get(Fields[i].Name),
7975- Fields[i].Type, /*TInfo=*/nullptr,
7976- /*BitWidth=*/nullptr, /*Mutable=*/false, ICIS_NoInit);
7972+ FieldDecl *Field = FieldDecl::Create(
7973+ *this, CFConstantStringTagDecl, SourceLocation(), SourceLocation(),
7974+ &Idents.get(Fields[i].Name), Fields[i].Type, /*TInfo=*/nullptr,
7975+ /*Mutable=*/false, ICIS_NoInit);
79777976 Field->setAccess(AS_public);
79787977 CFConstantStringTagDecl->addDecl(Field);
79797978 }
@@ -8039,7 +8038,7 @@ QualType ASTContext::getBlockDescriptorType() const {
80398038 FieldDecl *Field = FieldDecl::Create(
80408039 *this, RD, SourceLocation(), SourceLocation(),
80418040 &Idents.get(FieldNames[i]), FieldTypes[i], /*TInfo=*/nullptr,
8042- /*BitWidth=*/nullptr, /* Mutable=*/false, ICIS_NoInit);
8041+ /*Mutable=*/false, ICIS_NoInit);
80438042 Field->setAccess(AS_public);
80448043 RD->addDecl(Field);
80458044 }
@@ -8078,7 +8077,6 @@ QualType ASTContext::getBlockDescriptorExtendedType() const {
80788077 FieldDecl *Field = FieldDecl::Create(
80798078 *this, RD, SourceLocation(), SourceLocation(),
80808079 &Idents.get(FieldNames[i]), FieldTypes[i], /*TInfo=*/nullptr,
8081- /*BitWidth=*/nullptr,
80828080 /*Mutable=*/false, ICIS_NoInit);
80838081 Field->setAccess(AS_public);
80848082 RD->addDecl(Field);
@@ -9436,15 +9434,11 @@ CreateAArch64ABIBuiltinVaListDecl(const ASTContext *Context) {
94369434
94379435 // Create fields
94389436 for (unsigned i = 0; i < NumFields; ++i) {
9439- FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
9440- VaListTagDecl,
9441- SourceLocation(),
9442- SourceLocation(),
9443- &Context->Idents.get(FieldNames[i]),
9444- FieldTypes[i], /*TInfo=*/nullptr,
9445- /*BitWidth=*/nullptr,
9446- /*Mutable=*/false,
9447- ICIS_NoInit);
9437+ FieldDecl *Field = FieldDecl::Create(
9438+ const_cast<ASTContext &>(*Context), VaListTagDecl, SourceLocation(),
9439+ SourceLocation(), &Context->Idents.get(FieldNames[i]), FieldTypes[i],
9440+ /*TInfo=*/nullptr,
9441+ /*Mutable=*/false, ICIS_NoInit);
94489442 Field->setAccess(AS_public);
94499443 VaListTagDecl->addDecl(Field);
94509444 }
@@ -9489,14 +9483,10 @@ static TypedefDecl *CreatePowerABIBuiltinVaListDecl(const ASTContext *Context) {
94899483
94909484 // Create fields
94919485 for (unsigned i = 0; i < NumFields; ++i) {
9492- FieldDecl *Field = FieldDecl::Create(*Context, VaListTagDecl,
9493- SourceLocation(),
9494- SourceLocation(),
9495- &Context->Idents.get(FieldNames[i]),
9496- FieldTypes[i], /*TInfo=*/nullptr,
9497- /*BitWidth=*/nullptr,
9498- /*Mutable=*/false,
9499- ICIS_NoInit);
9486+ FieldDecl *Field = FieldDecl::Create(
9487+ *Context, VaListTagDecl, SourceLocation(), SourceLocation(),
9488+ &Context->Idents.get(FieldNames[i]), FieldTypes[i], /*TInfo=*/nullptr,
9489+ /*Mutable=*/false, ICIS_NoInit);
95009490 Field->setAccess(AS_public);
95019491 VaListTagDecl->addDecl(Field);
95029492 }
@@ -9547,15 +9537,11 @@ CreateX86_64ABIBuiltinVaListDecl(const ASTContext *Context) {
95479537
95489538 // Create fields
95499539 for (unsigned i = 0; i < NumFields; ++i) {
9550- FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
9551- VaListTagDecl,
9552- SourceLocation(),
9553- SourceLocation(),
9554- &Context->Idents.get(FieldNames[i]),
9555- FieldTypes[i], /*TInfo=*/nullptr,
9556- /*BitWidth=*/nullptr,
9557- /*Mutable=*/false,
9558- ICIS_NoInit);
9540+ FieldDecl *Field = FieldDecl::Create(
9541+ const_cast<ASTContext &>(*Context), VaListTagDecl, SourceLocation(),
9542+ SourceLocation(), &Context->Idents.get(FieldNames[i]), FieldTypes[i],
9543+ /*TInfo=*/nullptr,
9544+ /*Mutable=*/false, ICIS_NoInit);
95599545 Field->setAccess(AS_public);
95609546 VaListTagDecl->addDecl(Field);
95619547 }
@@ -9599,16 +9585,12 @@ CreateAAPCSABIBuiltinVaListDecl(const ASTContext *Context) {
95999585 VaListDecl->startDefinition();
96009586
96019587 // void * __ap;
9602- FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
9603- VaListDecl,
9604- SourceLocation(),
9605- SourceLocation(),
9606- &Context->Idents.get("__ap"),
9607- Context->getPointerType(Context->VoidTy),
9608- /*TInfo=*/nullptr,
9609- /*BitWidth=*/nullptr,
9610- /*Mutable=*/false,
9611- ICIS_NoInit);
9588+ FieldDecl *Field = FieldDecl::Create(
9589+ const_cast<ASTContext &>(*Context), VaListDecl, SourceLocation(),
9590+ SourceLocation(), &Context->Idents.get("__ap"),
9591+ Context->getPointerType(Context->VoidTy),
9592+ /*TInfo=*/nullptr,
9593+ /*Mutable=*/false, ICIS_NoInit);
96129594 Field->setAccess(AS_public);
96139595 VaListDecl->addDecl(Field);
96149596
@@ -9650,15 +9632,11 @@ CreateSystemZBuiltinVaListDecl(const ASTContext *Context) {
96509632
96519633 // Create fields
96529634 for (unsigned i = 0; i < NumFields; ++i) {
9653- FieldDecl *Field = FieldDecl::Create(const_cast<ASTContext &>(*Context),
9654- VaListTagDecl,
9655- SourceLocation(),
9656- SourceLocation(),
9657- &Context->Idents.get(FieldNames[i]),
9658- FieldTypes[i], /*TInfo=*/nullptr,
9659- /*BitWidth=*/nullptr,
9660- /*Mutable=*/false,
9661- ICIS_NoInit);
9635+ FieldDecl *Field = FieldDecl::Create(
9636+ const_cast<ASTContext &>(*Context), VaListTagDecl, SourceLocation(),
9637+ SourceLocation(), &Context->Idents.get(FieldNames[i]), FieldTypes[i],
9638+ /*TInfo=*/nullptr,
9639+ /*Mutable=*/false, ICIS_NoInit);
96629640 Field->setAccess(AS_public);
96639641 VaListTagDecl->addDecl(Field);
96649642 }
@@ -9704,7 +9682,6 @@ static TypedefDecl *CreateHexagonBuiltinVaListDecl(const ASTContext *Context) {
97049682 const_cast<ASTContext &>(*Context), VaListTagDecl, SourceLocation(),
97059683 SourceLocation(), &Context->Idents.get(FieldNames[i]), FieldTypes[i],
97069684 /*TInfo=*/nullptr,
9707- /*BitWidth=*/nullptr,
97089685 /*Mutable=*/false, ICIS_NoInit);
97099686 Field->setAccess(AS_public);
97109687 VaListTagDecl->addDecl(Field);
0 commit comments