mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 08:13:13 +01:00
Fixed a crash in WithStatement::toIR.
This commit is contained in:
@@ -1442,7 +1442,6 @@ void WithStatement::toIR(IRState* p)
|
||||
#endif
|
||||
|
||||
assert(exp);
|
||||
assert(body);
|
||||
|
||||
// with(..) can either be used with expressions or with symbols
|
||||
// wthis == null indicates the symbol form
|
||||
@@ -1452,7 +1451,8 @@ void WithStatement::toIR(IRState* p)
|
||||
DtoStore(e->getRVal(), mem);
|
||||
}
|
||||
|
||||
body->toIR(p);
|
||||
if (body)
|
||||
body->toIR(p);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user