From b977e1e6440c5a7e3d201b7f2a81e8a7e8d98f03 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Fri, 6 Mar 2015 21:46:07 +0100 Subject: [PATCH] roll back nothrow for synchronized (mtx) - we had problems turning vibe.d's Mutex implementation into nothrow --- src/statement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/statement.c b/src/statement.c index 3457e9319eac..e6b5ce4c87f1 100644 --- a/src/statement.c +++ b/src/statement.c @@ -4206,12 +4206,12 @@ Statement *SynchronizedStatement::semantic(Scope *sc) Parameters* args = new Parameters; args->push(new Parameter(0, ClassDeclaration::object->type, NULL, NULL)); - FuncDeclaration *fdenter = FuncDeclaration::genCfunc(args, Type::tvoid, Id::monitorenter, STCnothrow); + FuncDeclaration *fdenter = FuncDeclaration::genCfunc(args, Type::tvoid, Id::monitorenter); Expression *e = new CallExp(loc, new VarExp(loc, fdenter), new VarExp(loc, tmp)); e->type = Type::tvoid; // do not run semantic on e cs->push(new ExpStatement(loc, e)); - FuncDeclaration *fdexit = FuncDeclaration::genCfunc(args, Type::tvoid, Id::monitorexit, STCnothrow); + FuncDeclaration *fdexit = FuncDeclaration::genCfunc(args, Type::tvoid, Id::monitorexit); e = new CallExp(loc, new VarExp(loc, fdexit), new VarExp(loc, tmp)); e->type = Type::tvoid; // do not run semantic on e Statement *s = new ExpStatement(loc, e);