mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
fixes #438 :: scope attribute broke with dmdfe 1.062 upgrade; thanks to SiegeLord
This commit is contained in:
@@ -4155,7 +4155,12 @@ Statement *TryFinallyStatement::syntaxCopy()
|
||||
Statement *TryFinallyStatement::semantic(Scope *sc)
|
||||
{
|
||||
//printf("TryFinallyStatement::semantic()\n");
|
||||
// This code is different in LDC because LDC needs to know the
|
||||
// enclosingScopeExit for its labels
|
||||
Statement* oldScopeExit = sc->enclosingScopeExit;
|
||||
sc->enclosingScopeExit = this;
|
||||
body = body->semantic(sc);
|
||||
sc->enclosingScopeExit = oldScopeExit;
|
||||
sc = sc->push();
|
||||
sc->enclosingFinally = this;
|
||||
sc->sbreak = NULL;
|
||||
|
||||
Reference in New Issue
Block a user