commit | 3e9b4ea99d76d142d7cb1de9e86dec026ebfc8c3 | [log] [tgz] |
---|---|---|
author | Morten Krogh-Jespersen <mkroghj@google.com> | Thu Mar 16 09:40:46 2023 +0100 |
committer | Morten Krogh-Jespersen <mkroghj@google.com> | Thu Mar 16 13:38:27 2023 +0000 |
tree | dfc55ee963da8e69cd10de7e8b6a7120cf914a96 | |
parent | eb309752646af145c198c7221182e6abcc510bfc [diff] |
Ensure we call prepare and scan for yielding desugarings Change-Id: Iad387f8a10e9147d2f3bae26e944ec64f7f7a73b
diff --git a/src/main/java/com/android/tools/r8/ir/desugar/NonEmptyCfInstructionDesugaringCollection.java b/src/main/java/com/android/tools/r8/ir/desugar/NonEmptyCfInstructionDesugaringCollection.java index 40e5b9f..184dff0 100644 --- a/src/main/java/com/android/tools/r8/ir/desugar/NonEmptyCfInstructionDesugaringCollection.java +++ b/src/main/java/com/android/tools/r8/ir/desugar/NonEmptyCfInstructionDesugaringCollection.java
@@ -200,12 +200,14 @@ ProgramAdditions programAdditions) { ensureCfCode(method); desugarings.forEach(d -> d.prepare(method, eventConsumer, programAdditions)); + yieldingDesugarings.forEach(d -> d.prepare(method, eventConsumer, programAdditions)); } @Override public void scan(ProgramMethod method, CfInstructionDesugaringEventConsumer eventConsumer) { ensureCfCode(method); desugarings.forEach(d -> d.scan(method, eventConsumer)); + yieldingDesugarings.forEach(d -> d.scan(method, eventConsumer)); } @Override