mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Fixed a crash when compiling test runnable/A16.
This commit is contained in:
parent
0b4b009a69
commit
3eb6b5e8c8
5 changed files with 134 additions and 96 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue