695234fa15
This mirrors the same cleanup that is already in `computeLegacy()`. Change-Id: I477fd1e7aa29487a6752da69736d6ce1f20d6f39 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141461 Reviewed-by: Mark Zhou <markzipan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>