mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fix a crash in OrOrExp::toElem
This commit is contained in:
@@ -2095,7 +2095,7 @@ DValue* OrOrExp::toElem(IRState* p)
|
||||
DValue* v = e2->toElem(p);
|
||||
|
||||
LLValue* vbool = 0;
|
||||
if (!v->isFunc() && v->getType() != Type::tvoid)
|
||||
if (v && !v->isFunc() && v->getType() != Type::tvoid)
|
||||
{
|
||||
vbool = DtoCast(loc, v, Type::tbool)->getRVal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user