]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/EMatch.java
SCL compiler generates line numbers to bytecode
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / expressions / EMatch.java
index 279815ecfd1b19227483a7b363bc6e137af63303..494bcfb5d6bfc9d93aab0b50bfd2de29c233cbb7 100644 (file)
@@ -54,7 +54,7 @@ public class EMatch extends Expression {
 
         CodeWriter joinPoint = w.createBlock(getType());
         CodeWriter failurePoint = w.createBlock(); // TODO generate only one failurePoint per function
-        PatternMatchingCompiler.split(w, context, scrutineeVals, joinPoint.getContinuation(), failurePoint.getContinuation(), rows);
+        PatternMatchingCompiler.split(location, w, context, scrutineeVals, joinPoint.getContinuation(), failurePoint.getContinuation(), rows);
         failurePoint.throw_(location, Throw.MatchingException, "Matching failure at: " + toString());
         w.continueAs(joinPoint);
         return w.getParameters()[0];