mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Error instead of assert when trying to build a default initializer for void[n].
This commit is contained in:
parent
1b16f2234e
commit
049e24cef8
6 changed files with 20 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue