From f6111f23f210c78b590a85cffebf987951fc0540 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 6 Mar 2012 10:47:24 +0400 Subject: [PATCH] =?UTF-8?q?Fixed=20#85=20=E2=80=94=20ICE=20with=20a=20non-?= =?UTF-8?q?POD=20local=20struct=20literal=20in=20a=20class=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 7579726f..e0a31517 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -2881,7 +2881,7 @@ DValue* StructLiteralExp::toElem(IRState* p) #if DMDV2 else if (vd == sd->vthis) { IF_LOG Logger::println("initializing vthis"); - val = new DImValue(Type::tvoidptr, DtoBitCast(DtoNestedContext(loc, sd), getVoidPtrType())); + val = new DImValue(vd->type, DtoBitCast(DtoNestedContext(loc, sd), DtoType(vd->type))); } #endif else