From 5e11003ea390c4442f26abf1e169e41bb67b2463 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 12 Jan 2012 01:25:34 +0400 Subject: [PATCH] pass -1 to visit maxs to avoid confusion in CodeWindow and test output --- .../backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java b/compiler/backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java index da0a51a5e7e..43ecd6939a8 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/FunctionCodegen.java @@ -241,7 +241,7 @@ public class FunctionCodegen { public static void endVisit(MethodVisitor mv, String description, PsiElement method) { try { - mv.visitMaxs(0, 0); + mv.visitMaxs(-1, -1); } catch (Throwable t) { throw new CompilationException("wrong code generated" + (description != null ? " for " + description : "") + t.getClass().getName() + " " + t.getMessage(), t, method);