From 47cd9a71a2850c0a3ba01d50b5fa38d6c7f4a396 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Wed, 30 Oct 2013 14:17:10 +0400 Subject: [PATCH] Inline local var --- .../src/org/jetbrains/jet/codegen/context/CodegenContext.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java b/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java index 760bf3a7c9d..dbf72d35b82 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java @@ -305,9 +305,8 @@ public abstract class CodegenContext { } public StackValue lookupInContext(DeclarationDescriptor d, @Nullable StackValue result, GenerationState state, boolean ignoreNoOuter) { - MutableClosure top = closure; StackValue myOuter = null; - if (top != null) { + if (closure != null) { EnclosedValueDescriptor answer = closure.getCaptureVariables().get(d); if (answer != null) { StackValue innerValue = answer.getInnerValue();