mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 03:46:02 +03:00
Upgrade frontend & libs to pre-DMD-monorepo state (dlang/dmd@20bd0cacbd)
This commit is contained in:
parent
5b0c3dda0c
commit
b7624aa625
98 changed files with 5453 additions and 4089 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue