summaryrefslogtreecommitdiff
path: root/MLKLexicalContext.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKLexicalContext.m')
-rw-r--r--MLKLexicalContext.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/MLKLexicalContext.m b/MLKLexicalContext.m
index 5456aa3..acb5b4e 100644
--- a/MLKLexicalContext.m
+++ b/MLKLexicalContext.m
@@ -293,7 +293,8 @@ static MLKLexicalContext *global_context;
-(BOOL) variableIsGlobal:(id)name
{
- return [self contextForVariable:name] == [MLKLexicalContext globalContext];
+ return (![self contextForVariable:name]
+ || [self contextForVariable:name] == [MLKLexicalContext globalContext]);
}
-(BOOL) functionIsInline:(MLKSymbol *)symbol