mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Fixed a crash when compiling test runnable/A16.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user