diff gen/structs.cpp @ 812:6c2ff06c4201

Fixed a nasty bug with how interface vtables for class initializers were output, causing some class fields to be skipped. Fixed a problem in definition of ClassInfos where an invalid constant was potentially used. This needs to be looked into proper as it might happen again in the future.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 01 Dec 2008 04:37:54 +0100
parents 69a5e4a6fc0f
children a125ada7fd95
line wrap: on
line diff
--- a/gen/structs.cpp	Mon Dec 01 02:10:16 2008 +0100
+++ b/gen/structs.cpp	Mon Dec 01 04:37:54 2008 +0100
@@ -467,6 +467,7 @@
     const llvm::StructType* structtype = isaStruct(sd->type->ir.type->get());
 
     // always generate the constant initalizer
+    assert(!irstruct->constInit);
     if (sd->zeroInit)
     {
         Logger::println("Zero initialized");