Fixed struct default initializers.

This commit is contained in:
Tomas Lindquist Olsen
2009-04-25 18:26:54 +02:00
parent d21cdb1df0
commit 3e882d422b
6 changed files with 163 additions and 45 deletions

View File

@@ -276,9 +276,6 @@ LLConstant * IrStruct::createClassDefaultInitializer()
// build the constant
llvm::Constant* definit = llvm::ConstantStruct::get(constants, false);
// sanity check
assert(definit->getType() == type->irtype->getPA().get() && "class initializer type mismatch");
return definit;
}