Fixed a crash when compiling test runnable/A16.

This commit is contained in:
Alexey Prokhin 2010-12-14 14:35:52 +03:00
parent 0b4b009a69
commit 3eb6b5e8c8
5 changed files with 134 additions and 96 deletions

View file

@ -529,7 +529,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
#endif
// we never reference parameters of function prototypes
std::string str;
if (!declareOnly)
// if (!declareOnly)
{
// name parameters
llvm::Function::arg_iterator iarg = func->arg_begin();
@ -772,16 +772,6 @@ void DtoDefineFunction(FuncDeclaration* fd)
}
#endif
#if DMDV2
// fill nestedVars
size_t nnest = fd->closureVars.dim;
for (size_t i = 0; i < nnest; ++i)
{
VarDeclaration* vd = (VarDeclaration*)fd->closureVars.data[i];
fd->nestedVars.insert(vd);
}
#endif
DtoCreateNestedContext(fd);
#if DMDV2