mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 16:23:14 +01:00
[svn r348] Switch on class invariants (except in release mode).
Generate correct member for classInvariant in classinfo struct.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user