File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -19856,12 +19856,7 @@ static void DoMarkVarDeclReferenced(
19856
19856
// The size of an incomplete array type can be updated by
19857
19857
// instantiating the initializer. The DeclRefExpr's type should be
19858
19858
// updated accordingly too, or users of it would be confused!
19859
- //
19860
- // FIXME: Do we need to recompute the type for all the Decls, as in
19861
- // BuildDeclarationNameExpr?
19862
- if (SemaRef.Context.getAsIncompleteArrayType(DRE->getType()) &&
19863
- !SemaRef.Context.getAsIncompleteArrayType(Var->getType()))
19864
- DRE->setType(Var->getType());
19859
+ SemaRef.getCompletedType(DRE);
19865
19860
} else if (auto *ME = dyn_cast_or_null<MemberExpr>(E))
19866
19861
ME->setMemberDecl(ME->getMemberDecl());
19867
19862
} else if (FirstInstantiation) {
You can’t perform that action at this time.
0 commit comments