mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
Merge 2.078.0 front-end and stdlibs
This commit is contained in:
parent
f338b559ff
commit
cfad799f48
203 changed files with 9174 additions and 8166 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue