mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-05 14:33:14 +01:00
Merge DMD r310: bugzilla 3645 manifest constant (enum) crashes dmd
--- dmd/interpret.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
This commit is contained in:
@@ -228,7 +228,8 @@ Expression *FuncDeclaration::interpret(InterState *istate, Expressions *argument
|
||||
}
|
||||
}
|
||||
// Don't restore the value of 'this' upon function return
|
||||
if (needThis() && thisarg->op==TOKvar) {
|
||||
if (needThis() && thisarg->op == TOKvar && istate)
|
||||
{
|
||||
VarDeclaration *thisvar = ((VarExp *)(thisarg))->var->isVarDeclaration();
|
||||
for (size_t i = 0; i < istate->vars.dim; i++)
|
||||
{ VarDeclaration *v = (VarDeclaration *)istate->vars.data[i];
|
||||
|
||||
Reference in New Issue
Block a user