@@ -5803,7 +5803,7 @@ Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS,
5803
5803
// Mock up a declarator.
5804
5804
Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::Member);
5805
5805
StorageClass SC = StorageClassSpecToVarDeclStorageClass(DS);
5806
- TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc, S );
5806
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc);
5807
5807
assert(TInfo && "couldn't build declarator info for anonymous struct/union");
5808
5808
5809
5809
// Create a declaration for this anonymous struct/union.
@@ -5900,7 +5900,7 @@ Decl *Sema::BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS,
5900
5900
5901
5901
// Mock up a declarator.
5902
5902
Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName);
5903
- TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc, S );
5903
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(Dc);
5904
5904
assert(TInfo && "couldn't build declarator info for anonymous struct");
5905
5905
5906
5906
auto *ParentDecl = cast<RecordDecl>(CurContext);
@@ -6438,7 +6438,7 @@ NamedDecl *Sema::HandleDeclarator(Scope *S, Declarator &D,
6438
6438
}
6439
6439
}
6440
6440
6441
- TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S );
6441
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(D);
6442
6442
QualType R = TInfo->getType();
6443
6443
6444
6444
if (DiagnoseUnexpandedParameterPack(D.getIdentifierLoc(), TInfo,
@@ -15072,7 +15072,7 @@ Decl *Sema::ActOnParamDeclarator(Scope *S, Declarator &D,
15072
15072
15073
15073
CheckFunctionOrTemplateParamDeclarator(S, D);
15074
15074
15075
- TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S );
15075
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(D);
15076
15076
QualType parmDeclType = TInfo->getType();
15077
15077
15078
15078
// Check for redeclaration of parameters, e.g. int foo(int x, int x);
@@ -18336,7 +18336,7 @@ FieldDecl *Sema::HandleField(Scope *S, RecordDecl *Record,
18336
18336
SourceLocation Loc = DeclStart;
18337
18337
if (II) Loc = D.getIdentifierLoc();
18338
18338
18339
- TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S );
18339
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(D);
18340
18340
QualType T = TInfo->getType();
18341
18341
if (getLangOpts().CPlusPlus) {
18342
18342
CheckExtraCXXDefaultArguments(D);
@@ -18700,7 +18700,7 @@ Decl *Sema::ActOnIvar(Scope *S, SourceLocation DeclStart, Declarator &D,
18700
18700
// FIXME: Unnamed fields can be handled in various different ways, for
18701
18701
// example, unnamed unions inject all members into the struct namespace!
18702
18702
18703
- TypeSourceInfo *TInfo = GetTypeForDeclarator(D, S );
18703
+ TypeSourceInfo *TInfo = GetTypeForDeclarator(D);
18704
18704
QualType T = TInfo->getType();
18705
18705
18706
18706
if (BitWidth) {
0 commit comments