Removed some dead code.

Fixed assertion filenames for imported template instances. Fixes #152 .
This commit is contained in:
Tomas Lindquist Olsen
2009-02-04 02:10:23 +01:00
parent 6cd6ddd237
commit 7d2a0a84a7
6 changed files with 13 additions and 13 deletions

View File

@@ -1768,7 +1768,7 @@ DValue* AssertExp::toElem(IRState* p)
// call assert runtime functions
p->scope() = IRScope(assertbb,endbb);
DtoAssert(&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);
@@ -1943,7 +1943,7 @@ DValue* HaltExp::toElem(IRState* p)
// FIXME: DMD inserts a trap here... we probably should as well !?!
#if 1
DtoAssert(&loc, NULL);
DtoAssert(p->func()->decl->getModule(), &loc, NULL);
#else
// call the new (?) trap intrinsic
p->ir->CreateCall(GET_INTRINSIC_DECL(trap),"");