summaryrefslogtreecommitdiff
path: root/MLKLexicalEnvironment.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-01 23:39:42 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-01 23:39:42 +0200
commita5364817b1cd751832a4634e4afbd67bb668fa2e (patch)
treeaa17dedb58241b6d9f0462762baf11b4f9291127 /MLKLexicalEnvironment.m
parent73903e25720a373028a2bf269c2aab27385c4692 (diff)
LLVM compiler: Add support for heap allocation of lexical variables.
Diffstat (limited to 'MLKLexicalEnvironment.m')
-rw-r--r--MLKLexicalEnvironment.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/MLKLexicalEnvironment.m b/MLKLexicalEnvironment.m
index 91ff351..af2a103 100644
--- a/MLKLexicalEnvironment.m
+++ b/MLKLexicalEnvironment.m
@@ -110,8 +110,8 @@ static MLKLexicalEnvironment *global_environment;
if (![_variables environmentForSymbol:symbol]
|| [_variables environmentForSymbol:symbol] == global_environment->_variables)
{
- id *cell = [[MLKLexicalContext globalContext] bindingCellForSymbol:symbol];
- return [*cell value];
+ id cell = [[MLKLexicalContext globalContext] bindingForSymbol:symbol];
+ return [cell value];
}
else
{
@@ -124,8 +124,8 @@ static MLKLexicalEnvironment *global_environment;
if (![_variables environmentForSymbol:symbol]
|| [_variables environmentForSymbol:symbol] == global_environment->_variables)
{
- id *cell = [[MLKLexicalContext globalContext] bindingCellForSymbol:symbol];
- [*cell setValue:value];
+ id cell = [[MLKLexicalContext globalContext] bindingForSymbol:symbol];
+ [cell setValue:value];
}
else
{
@@ -137,8 +137,8 @@ static MLKLexicalEnvironment *global_environment;
{
if (self == global_environment)
{
- id *cell = [[MLKLexicalContext globalContext] bindingCellForSymbol:symbol];
- [*cell setValue:value];
+ id cell = [[MLKLexicalContext globalContext] bindingForSymbol:symbol];
+ [cell setValue:value];
}
else
{