X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Fssa%2Fexits%2FThrow2.java;h=97fba708db5a4de52c830ef7d8e7362c377ca642;hp=78353b42419c54832c4b9d553754a30b79279a10;hb=91682baa9a8252390f09b80fd724f47e5957b234;hpb=3826e289058a51d09310b7ba1251e959dc0ed3d0 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/ssa/exits/Throw2.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/ssa/exits/Throw2.java index 78353b424..97fba708d 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/ssa/exits/Throw2.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/ssa/exits/Throw2.java @@ -21,7 +21,8 @@ public class Throw2 extends SSAExit { ValRef exception; - public Throw2(ValRef exception) { + public Throw2(int lineNumber, ValRef exception) { + super(lineNumber); this.exception = exception; } @@ -34,6 +35,7 @@ public class Throw2 extends SSAExit { @Override public void generateCode(MethodBuilder mb) { + mb.lineNumber(lineNumber); mb.pushBoxed(exception.getBinding()); mb.throwObject(); } @@ -49,7 +51,7 @@ public class Throw2 extends SSAExit { @Override public SSAExit copy(CopyContext context) { - return new Throw2(exception.copy()); + return new Throw2(lineNumber, exception.copy()); } @Override