Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 796:6e7a4c3b64d2
Error instead of assert when trying to build a default initializer for void[n].
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 29 Nov 2008 12:28:10 +0100 |
parents | 4adf0f742896 |
children | 340acf1535d0 |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Fri Nov 28 23:29:00 2008 +0100 +++ b/gen/llvmhelpers.h Sat Nov 29 12:28:10 2008 +0100 @@ -86,8 +86,8 @@ LLValue* DtoRawVarDeclaration(VarDeclaration* var); // initializer helpers -LLConstant* DtoConstInitializer(Type* type, Initializer* init); -LLConstant* DtoConstFieldInitializer(Type* type, Initializer* init); +LLConstant* DtoConstInitializer(Loc& loc, Type* type, Initializer* init); +LLConstant* DtoConstFieldInitializer(Loc& loc, Type* type, Initializer* init); DValue* DtoInitializer(LLValue* target, Initializer* init); // annotation generator @@ -109,7 +109,7 @@ void findDefaultTarget(); /// get the default initializer of the type -LLConstant* DtoDefaultInit(Type* t); +LLConstant* DtoDefaultInit(Loc& loc, Type* t); // fixup an overloaded intrinsic name string void DtoOverloadedIntrinsicName(TemplateInstance* ti, TemplateDeclaration* td, std::string& name);