[CP] Fix compiler crash when returning a value of uninitialized late variable from async function #50894
Labels
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
Commit(s) to merge
b205ea1
Target
beta, stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/278362, https://dart-review.googlesource.com/c/sdk/+/278361
Issue Description
AOT compiler crashed on the Dart code which was returning a value of uninitialized late local variable from async function.
What is the fix
Internal classes (such as uninitialized sentinel) are properly handled when checking if return value of async function is a Future.
Why cherry-pick
Reported by user; this bug prevents building their Flutter app in profile/release modes.
Risk
low
Issue link(s)
flutter/flutter#117892
Extra Info
No response
The text was updated successfully, but these errors were encountered: