Fix DMD Issue 8360 - Destruction of uninitialized temporary struct with assert

This commit is contained in:
Alexey Prokhin
2013-12-08 15:50:54 +04:00
parent ffe26e4ccc
commit 669319b924

View File

@@ -2291,7 +2291,7 @@ DValue* AssertExp::toElem(IRState* p)
// 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->toElemDtor(p) : NULL);
// rewrite the scope
p->scope() = IRScope(endbb,oldend);