mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
Error instead of assert when trying to build a default initializer for void[n].
This commit is contained in:
@@ -424,7 +424,7 @@ void TypeInfoTypedefDeclaration::llvmDefine()
|
||||
}
|
||||
else
|
||||
{
|
||||
LLConstant* ci = DtoConstInitializer(sd->basetype, sd->init);
|
||||
LLConstant* ci = DtoConstInitializer(sd->loc, sd->basetype, sd->init);
|
||||
std::string ciname(sd->mangle());
|
||||
ciname.append("__init");
|
||||
llvm::GlobalVariable* civar = new llvm::GlobalVariable(DtoType(sd->basetype),true,llvm::GlobalValue::InternalLinkage,ci,ciname,gIR->module);
|
||||
|
||||
Reference in New Issue
Block a user