Lines Matching defs:ILE

491                               InitListExpr *ILE, bool &RequiresSecondPass,
495 InitListExpr *ILE, bool &RequiresSecondPass,
498 InitListExpr *ILE, bool &RequiresSecondPass,
691 const InitializedEntity &ParentEntity, InitListExpr *ILE,
696 if (Init >= ILE->getNumInits() || !ILE->getInit(Init)) {
699 : PerformEmptyInit(ILE->getEndLoc(), BaseEntity);
706 assert(Init < ILE->getNumInits() && "should have been expanded");
707 ILE->setInit(Init, BaseInit.getAs<Expr>());
710 dyn_cast<InitListExpr>(ILE->getInit(Init))) {
712 ILE, Init, FillWithNoInit);
714 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) {
716 RequiresSecondPass, ILE, Init,
723 InitListExpr *ILE,
726 SourceLocation Loc = ILE->getEndLoc();
727 unsigned NumInits = ILE->getNumInits();
731 if (Init >= NumInits || !ILE->getInit(Init)) {
732 if (const RecordType *RType = ILE->getType()->getAs<RecordType>())
735 "This ILE should have been expanded");
741 ILE->setInit(Init, Filler);
743 ILE->updateInit(SemaRef.Context, Init, Filler);
761 ILE->setInit(Init, DIE.get());
763 ILE->updateInit(SemaRef.Context, Init, DIE.get());
777 << (ILE->isSyntacticForm() ? ILE : ILE->getSyntacticForm())
794 ILE->setInit(Init, MemberInit.getAs<Expr>());
800 ILE->updateInit(SemaRef.Context, Init, MemberInit.getAs<Expr>());
804 = dyn_cast<InitListExpr>(ILE->getInit(Init))) {
806 RequiresSecondPass, ILE, Init, FillWithNoInit);
808 dyn_cast<DesignatedInitUpdateExpr>(ILE->getInit(Init))) {
810 RequiresSecondPass, ILE, Init,
820 InitListExpr *ILE,
825 assert((ILE->getType() != SemaRef.Context.VoidTy) &&
849 // A transparent ILE is not performing aggregate initialization and should
851 if (ILE->isTransparent())
854 if (const RecordType *RType = ILE->getType()->getAs<RecordType>()) {
856 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion()) {
857 FillInEmptyInitForField(0, ILE->getInitializedFieldInUnion(), Entity, ILE,
863 // The fields beyond ILE->getNumInits() are default initialized, so in
864 // order to leave them uninitialized, the ILE is expanded and the extra
866 unsigned NumElems = numStructUnionElements(ILE->getType());
869 if (!VerifyOnly && ILE->getNumInits() < NumElems)
870 ILE->resizeInits(SemaRef.Context, NumElems);
879 FillInEmptyInitForBase(Init, Base, Entity, ILE, RequiresSecondPass,
892 FillInEmptyInitForField(Init, Field, Entity, ILE, RequiresSecondPass,
911 unsigned NumInits = ILE->getNumInits();
913 if (const ArrayType *AType = SemaRef.Context.getAsArrayType(ILE->getType())) {
923 } else if (const VectorType *VType = ILE->getType()->getAs<VectorType>()) {
929 ElementType = ILE->getType();
940 if (Init >= NumInits && (ILE->hasArrayFiller() || SkipEmptyInitChecks))
943 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr);
944 if (!InitExpr && Init < NumInits && ILE->hasArrayFiller())
945 ILE->setInit(Init, ILE->getArrayFiller());
946 else if (!InitExpr && !ILE->hasArrayFiller()) {
958 PerformEmptyInit(ILE->getEndLoc(), ElementEntity);
975 ILE->setArrayFiller(Filler);
977 ILE->setInit(Init, Filler);
982 ILE->setArrayFiller(Filler);
991 ILE->updateInit(SemaRef.Context, Init, Filler);
998 ILE, Init, FillWithNoInit);
1002 RequiresSecondPass, ILE, Init,
4353 InitListExpr *ILE =
4356 ILE ? MultiExprArg(ILE->getInits(), ILE->getNumInits()) : Args;
4384 if (ILE)
4385 Sequence.RewrapReferenceInitList(DestType, ILE);
4469 Sequence.RewrapReferenceInitList(Entity.getType(), ILE);
6600 InitListExpr *ILE = new (Context) InitListExpr(
6602 Args[0] = ILE;
8048 InitListExpr *ILE = new (S.Context) InitListExpr(S.Context,
8050 ILE->setSyntacticForm(Syntactic);
8051 ILE->setType(E->getType());
8052 ILE->setValueKind(E->getValueKind());
8053 CurInit = ILE;