[svn r348] Switch on class invariants (except in release mode).

Generate correct member for classInvariant in classinfo struct.
This commit is contained in:
Christian Kamm
2008-07-10 22:00:27 +02:00
parent fdca461a61
commit bace4dd0e7
2 changed files with 9 additions and 3 deletions

View File

@@ -1553,8 +1553,14 @@ void DtoDefineClassInfo(ClassDeclaration* cd)
inits.push_back(c);
// invariant
// TODO
c = defc->getOperand(8);
if (cd->inv) {
DtoForceDeclareDsymbol(cd->inv);
c = cd->inv->ir.irFunc->func;
// c = llvm::ConstantExpr::getBitCast(c, defc->getOperand(8)->getType());
}
else {
c = defc->getOperand(8);
}
inits.push_back(c);
// uint flags