Mercurial > projects > ldc
diff gen/llvmhelpers.h @ 1185:8baf611f0009
Fix nested references to 'ref' foreach variables.
These "walk around" the array being iterated over, so they're a bit trickier
than other variables to get right.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 01 Apr 2009 00:01:44 +0200 |
parents | 7d28dcbff23e |
children | 83d3b25c2213 |
line wrap: on
line diff
--- a/gen/llvmhelpers.h Tue Mar 31 03:06:19 2009 +0200 +++ b/gen/llvmhelpers.h Wed Apr 01 00:01:44 2009 +0200 @@ -101,7 +101,7 @@ // declaration inside a declarationexp DValue* DtoDeclarationExp(Dsymbol* declaration); -LLValue* DtoRawVarDeclaration(VarDeclaration* var); +LLValue* DtoRawVarDeclaration(VarDeclaration* var, LLValue* addr = 0); // initializer helpers LLConstant* DtoConstInitializer(Loc loc, Type* type, Initializer* init);