From 120d77e3bd0adbbb360e6f7172d31ab0fb189925 Mon Sep 17 00:00:00 2001 From: e5l Date: Thu, 21 Jul 2016 09:51:25 +0300 Subject: [PATCH] translator: fix reference matching --- .../src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt b/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt index 4a3e7170a75..d8578c1cfa7 100644 --- a/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt +++ b/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt @@ -167,7 +167,6 @@ abstract class BlockCodegen(open val state: TranslationState, open val variableM private fun evaluateReferenceExpression(expr: KtReferenceExpression, scopeDepth: Int, classScope: ClassCodegen? = null): LLVMSingleValue? = when (expr) { is KtArrayAccessExpression -> evaluateArrayAccessExpression(expr, scopeDepth + 1) - is KtNameReferenceExpression -> evaluatenameReferenceExpression(expr, scopeDepth + 1, classScope) else -> variableManager.getLLVMvalue(expr.firstChild.text) } private fun evaluateCallExpression(expr: KtCallExpression, scopeDepth: Int, classScope: ClassCodegen? = null): LLVMSingleValue? {