From bcd8f26b2611ca9293fd91a0b155d42137262fcb Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 4 Jan 2013 09:16:43 +0100 Subject: [PATCH] Removed completely wrong postblit invocation. This piece of code was invoking the postblit on the _source_ of the copy operation. --- gen/toir.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index cfdcb306..b160ee2e 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -2993,24 +2993,6 @@ DValue* StructLiteralExp::toElem(IRState* p) Logger::println("zeroing %d padding bytes", implicitPadding); voidptr = write_zeroes(voidptr, offset - implicitPadding, offset); } - -#if DMDV2 - Type *tb = vd->type->toBasetype(); - if (tb->ty == Tstruct) - { - // Call postBlit() - StructDeclaration *sd = static_cast(tb)->sym; - if (sd->postblit) - { - FuncDeclaration *fd = sd->postblit; - fd->codegen(Type::sir); - Expressions args; - DFuncValue dfn(fd, fd->ir.irFunc->func, val->getLVal()); - DtoCallFunction(loc, Type::basic[Tvoid], &dfn, &args); - } - } -#endif - } // initialize trailing padding if (sd->structsize != offset)