mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
WIP: merge dmdfe 2.066
This commit is contained in:
parent
6aca85a5e3
commit
76dec46df5
140 changed files with 33514 additions and 27072 deletions
|
@ -834,14 +834,8 @@ DValue* DtoCast(Loc& loc, DValue* val, Type* to)
|
|||
LLValue* zero = LLConstant::getNullValue(rval->getType());
|
||||
return new DImValue(to, gIR->ir->CreateICmpNE(rval, zero));
|
||||
}
|
||||
|
||||
// Else try dealing with the rewritten (struct) type.
|
||||
fromtype = static_cast<TypeAArray*>(fromtype)->getImpl()->type;
|
||||
}
|
||||
|
||||
if (totype->ty == Taarray)
|
||||
totype = static_cast<TypeAArray*>(totype)->getImpl()->type;
|
||||
|
||||
if (fromtype->equals(totype))
|
||||
return val;
|
||||
|
||||
|
@ -1045,7 +1039,7 @@ void DtoResolveVariable(VarDeclaration* vd)
|
|||
|
||||
assert(!vd->ir.initialized);
|
||||
vd->ir.initialized = gIR->dmodule;
|
||||
std::string llName(vd->mangle());
|
||||
std::string llName(mangle(vd));
|
||||
|
||||
// Since the type of a global must exactly match the type of its
|
||||
// initializer, we cannot know the type until after we have emitted the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue