Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dmd/dtemplate.d
Original file line number Diff line number Diff line change
Expand Up @@ -5517,7 +5517,7 @@ extern (C++) final class TemplateValueParameter : TemplateParameter
auto pe = cast(void*)valType in edummies;
if (!pe)
{
e = valType.defaultInit();
e = valType.defaultInit(Loc.initial);
edummies[cast(void*)valType] = e;
}
else
Expand Down
10 changes: 5 additions & 5 deletions src/dmd/e2ir.d
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ elem *toElem(Expression e, IRState *irs)
// call _d_newitemT(ti)
e = getTypeInfo(ne.newtype, irs);

int rtl = t.isZeroInit() ? RTLSYM_NEWITEMT : RTLSYM_NEWITEMIT;
int rtl = t.isZeroInit(Loc.initial) ? RTLSYM_NEWITEMT : RTLSYM_NEWITEMIT;
ex = el_bin(OPcall,TYnptr,el_var(getRtlsym(rtl)),e);
toTraceGC(irs, ex, ne.loc);

Expand Down Expand Up @@ -1782,7 +1782,7 @@ elem *toElem(Expression e, IRState *irs)

// call _d_newT(ti, arg)
e = el_param(e, getTypeInfo(ne.type, irs));
int rtl = tda.next.isZeroInit() ? RTLSYM_NEWARRAYT : RTLSYM_NEWARRAYIT;
int rtl = tda.next.isZeroInit(Loc.initial) ? RTLSYM_NEWARRAYT : RTLSYM_NEWARRAYIT;
e = el_bin(OPcall,TYdarray,el_var(getRtlsym(rtl)),e);
toTraceGC(irs, e, ne.loc);
}
Expand All @@ -1804,7 +1804,7 @@ elem *toElem(Expression e, IRState *irs)
if (config.exe == EX_WIN64)
e = addressElem(e, Type.tsize_t.arrayOf());
e = el_param(e, getTypeInfo(ne.type, irs));
int rtl = t.isZeroInit() ? RTLSYM_NEWARRAYMTX : RTLSYM_NEWARRAYMITX;
int rtl = t.isZeroInit(Loc.initial) ? RTLSYM_NEWARRAYMTX : RTLSYM_NEWARRAYMITX;
e = el_bin(OPcall,TYdarray,el_var(getRtlsym(rtl)),e);
toTraceGC(irs, e, ne.loc);

Expand All @@ -1820,7 +1820,7 @@ elem *toElem(Expression e, IRState *irs)
// call _d_newitemT(ti)
e = getTypeInfo(ne.newtype, irs);

int rtl = tp.next.isZeroInit() ? RTLSYM_NEWITEMT : RTLSYM_NEWITEMIT;
int rtl = tp.next.isZeroInit(Loc.initial) ? RTLSYM_NEWITEMT : RTLSYM_NEWITEMIT;
e = el_bin(OPcall,TYnptr,el_var(getRtlsym(rtl)),e);
toTraceGC(irs, e, ne.loc);

Expand Down Expand Up @@ -2610,7 +2610,7 @@ elem *toElem(Expression e, IRState *irs)
// call _d_arraysetlengthT(ti, e2, &ale.e1);
elem *p2 = getTypeInfo(t1, irs);
elem *ep = el_params(p3, p1, p2, null); // c function
int r = t1.nextOf().isZeroInit() ? RTLSYM_ARRAYSETLENGTHT : RTLSYM_ARRAYSETLENGTHIT;
int r = t1.nextOf().isZeroInit(Loc.initial) ? RTLSYM_ARRAYSETLENGTHT : RTLSYM_ARRAYSETLENGTHIT;

e = el_bin(OPcall, totym(ae.type), el_var(getRtlsym(r)), ep);
toTraceGC(irs, e, ae.loc);
Expand Down
2 changes: 1 addition & 1 deletion src/dmd/initsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ private extern(C++) final class InitToExpressionVisitor : Visitor
if (!init.type)
goto Lno;
if (!_init)
_init = (cast(TypeNext)t).next.defaultInit();
_init = (cast(TypeNext)t).next.defaultInit(Loc.initial);
(*elements)[i] = _init;
}
}
Expand Down
Loading