From b72e4f01e2a2fdab3f6d0c8343dd9431f7fafe6b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 17 Jun 2019 17:39:59 +0300 Subject: [PATCH] C: fix coroutine generation --- .../backend/lowlevel/transform/CoroutineTransformation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java b/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java index 540fc00b8..796e4daa4 100644 --- a/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java +++ b/core/src/main/java/org/teavm/backend/lowlevel/transform/CoroutineTransformation.java @@ -117,6 +117,7 @@ public class CoroutineTransformation { processBlock(program.basicBlockAt(i)); } splitter.fixProgram(); + new PhiUpdater().updatePhis(program, methodReference.parameterCount() + 1); processIrreducibleCfg(); }