LDC 2 compiles again.

This commit is contained in:
Robert Clipsham
2009-05-30 17:23:32 +01:00
parent 6619190ba5
commit c5be82c5ae
97 changed files with 67333 additions and 56949 deletions

View File

@@ -434,7 +434,11 @@ void TypeInfoEnumDeclaration::llvmDefine()
else
{
const LLType* memty = DtoType(sd->memtype);
#if DMDV2
LLConstant* C = llvm::ConstantInt::get(memty, sd->defaultval->toInteger(), !sd->memtype->isunsigned());
#else
LLConstant* C = llvm::ConstantInt::get(memty, sd->defaultval, !sd->memtype->isunsigned());
#endif
b.push_void_array(C, sd->memtype, sd);
}