From 81426b8cc8d8f2f964ace6e0c57ba6be8a4019d5 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Mon, 24 Oct 2011 12:55:53 +0400 Subject: [PATCH] Fix DelegateExp::toElem return type --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 228dfed6..c892aaef 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -2248,7 +2248,7 @@ DValue* DelegateExp::toElem(IRState* p) castfptr = DtoBitCast(castfptr, dgty->getContainedType(1)); - return new DImValue(type, DtoAggrPair(castcontext, castfptr, ".dg")); + return new DImValue(type, DtoAggrPair(DtoType(type), castcontext, castfptr, ".dg")); } //////////////////////////////////////////////////////////////////////////////////////////