Control-Flow: Generate mark instruction before the call/unresolved call instruction

#KT-7663 In Progress
This commit is contained in:
Alexey Sedunov
2015-05-11 15:43:10 +03:00
parent 34526005d0
commit c4e20b5cc1
2 changed files with 2 additions and 2 deletions
@@ -440,8 +440,8 @@ public class JetControlFlowProcessor {
if (right != null) {
generateInstructions(right);
}
createNonSyntheticValue(expression, MagicKind.UNRESOLVED_CALL, left, right);
mark(expression);
createNonSyntheticValue(expression, MagicKind.UNRESOLVED_CALL, left, right);
}
private void visitAssignment(
@@ -26,8 +26,8 @@ L0:
r(0) -> <v2>
magic[UNRESOLVED_CALL](a[0]|<v1>, <v2>) -> <v3>
r(1) -> <v4>
magic[UNRESOLVED_CALL](a[0] += 1|<v3>, <v4>) -> <v5>
mark(a[0] += 1)
magic[UNRESOLVED_CALL](a[0] += 1|<v3>, <v4>) -> <v5>
L1:
1 <END> NEXT:[<SINK>]
error: