From 669319b924e35c34533651b056b3a3e809b76a8d Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sun, 8 Dec 2013 15:50:54 +0400 Subject: [PATCH] Fix DMD Issue 8360 - Destruction of uninitialized temporary struct with assert --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index b9d6f34e..777ab052 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -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);