Fixed some minitest regressions.

This commit is contained in:
Tomas Lindquist Olsen
2009-04-16 19:21:30 +02:00
parent 5db458d8da
commit 9a86f9c0b5
9 changed files with 272 additions and 53 deletions

View File

@@ -23,7 +23,9 @@ IrStruct::IrStruct(AggregateDeclaration* aggr)
type = aggr->type;
packed = false;
packed = (type->ty == Tstruct)
? type->alignsize() == 1
: false;
// above still need to be looked at
@@ -190,8 +192,10 @@ LLConstant * IrStruct::createStructDefaultInitializer()
IF_LOG Logger::cout() << "final default initializer: " << *definit << std::endl;
// sanity check
assert(definit->getType() == type->irtype->get() &&
"default initializer type does not match the default struct type");
if (definit->getType() != type->irtype->get())
{
assert(0 && "default initializer type does not match the default struct type");
}
return definit;
}