mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-19 13:13:16 +01:00
DMD Issue 5416 - null should have a type of its own
This commit is contained in:
@@ -96,6 +96,8 @@ void ReturnStatement::toIR(IRState* p)
|
||||
if (!exp && (p->topfunc() == p->mainFunc)) {
|
||||
v = LLConstant::getNullValue(p->mainFunc->getReturnType());
|
||||
} else {
|
||||
if (exp->op == TOKnull)
|
||||
exp->type = p->func()->type->next;
|
||||
#if DMDV2
|
||||
DValue* dval = 0;
|
||||
// call postblit if necessary
|
||||
|
||||
Reference in New Issue
Block a user