Mercurial > projects > ldc
diff gen/toir.cpp @ 1141:f99a3b393c03
Reorganize EnclosingHandlers to require less changes to the frontend and allow us to
implement the synchronized storage class for functions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 24 Mar 2009 21:18:18 +0100 |
parents | 9d308feaec27 |
children | 1860414bf3b7 |
line wrap: on
line diff
--- a/gen/toir.cpp Tue Mar 24 14:34:16 2009 +0100 +++ b/gen/toir.cpp Tue Mar 24 21:18:18 2009 +0100 @@ -1783,7 +1783,7 @@ // call assert runtime functions p->scope() = IRScope(assertbb,endbb); - DtoAssert(p->func()->decl->getModule(), &loc, msg ? msg->toElem(p) : NULL); + DtoAssert(p->func()->decl->getModule(), loc, msg ? msg->toElem(p) : NULL); // rewrite the scope p->scope() = IRScope(endbb,oldend); @@ -1958,7 +1958,7 @@ // FIXME: DMD inserts a trap here... we probably should as well !?! #if 1 - DtoAssert(p->func()->decl->getModule(), &loc, NULL); + DtoAssert(p->func()->decl->getModule(), loc, NULL); #else // call the new (?) trap intrinsic p->ir->CreateCall(GET_INTRINSIC_DECL(trap),"");