Upgrade frontend & libs to pre-DMD-monorepo state (dlang/dmd@20bd0cacbd)

This commit is contained in:
Martin Kinkelin 2022-09-11 17:22:26 +02:00
parent 5b0c3dda0c
commit b7624aa625
98 changed files with 5453 additions and 4089 deletions

View file

@ -1597,14 +1597,14 @@ DValue *DtoSymbolAddress(const Loc &loc, Type *type, Declaration *decl) {
assert(tb->ty == TY::Tarray && tb->nextOf()->ty == TY::Tvoid);
const auto size = DtoConstSize_t(ad->structsize);
llvm::Constant *ptr =
sd && sd->zeroInit
sd && sd->zeroInit()
? getNullValue(getVoidPtrType())
: DtoBitCast(getIrAggr(ad)->getInitSymbol(), getVoidPtrType());
return new DSliceValue(type, size, ptr);
}
assert(sd);
if (sd->zeroInit) {
if (sd->zeroInit()) {
error(loc, "no init symbol for zero-initialized struct");
fatal();
}