mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
LDC 2 compiles again.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user