Merge 2.078.0 front-end and stdlibs

This commit is contained in:
Martin 2018-01-05 19:36:33 +01:00
parent f338b559ff
commit cfad799f48
203 changed files with 9174 additions and 8166 deletions

View file

@ -282,10 +282,11 @@ DValue *DtoCastClass(Loc &loc, DValue *val, Type *_to) {
return new DImValue(_to, v);
}
if (fc->sym->cpp) {
if (fc->sym->isCPPclass() || fc->sym->isCPPinterface()) {
Logger::println("C++ class/interface cast");
LLValue *v = tc->sym->cpp ? DtoBitCast(DtoRVal(val), toType)
: LLConstant::getNullValue(toType);
LLValue *v = tc->sym->isCPPclass() || tc->sym->isCPPinterface()
? DtoBitCast(DtoRVal(val), toType)
: LLConstant::getNullValue(toType);
return new DImValue(_to, v);
}