summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 19:33:46 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 19:33:46 +0200
commit76292caba5ad0f7b998bf266e61d43bd898e8c6b (patch)
treeef01d6652cff2a244f2fdfc57e162d819ef25d29
parentbae17bbe092e519864ee70894d67fb44ef1e18cb (diff)
MLKLLVMCompiler#-markVariablesForHeapAllocationInForm:: Fix lexical-context-related lossage.
-rw-r--r--MLKLLVMCompiler.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 8f52b59..60753e5 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -228,8 +228,8 @@ static Constant
for (j = 0; j < [freeVariables count]; j++)
{
id variable = [freeVariables objectAtIndex:j];
- [[form context] setVariableHeapAllocation:YES
- forSymbol:variable];
+ [[subform context] setVariableHeapAllocation:YES
+ forSymbol:variable];
}
}
}