]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/GuardedExpressionGroup.java
SCL compiler generates line numbers to bytecode
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / GuardedExpressionGroup.java
index 48283a887a2dc883ded12c0632faf800d434b097..402d6fab3247758ba525f9de7c0147af21bd39e3 100644 (file)
@@ -88,11 +88,11 @@ public class GuardedExpressionGroup extends Expression {
             
             for(Expression guard : expressions[i].guards) {
                 CodeWriter nextW = w.createBlock();
-                w.if_(guard.toVal(context, w), nextW.getContinuation(), failure);
+                w.if_(guard.location, guard.toVal(context, w), nextW.getContinuation(), failure);
                 w = nextW;
             }
             
-            w.jump(success, expressions[i].value.toVal(context, w));
+            w.jump(expressions[i].location, success, expressions[i].value.toVal(context, w));
         }
     }