You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[stable] [vm] Fix compiler crash when returning a value of uninitialized late variable from async function
This change fixes CompileType::CanBeFuture() which previously attempted
to use Class objects by class id without first checking if cid is internal.
Cid can be internal (SentinelCid) when CompileType::CanBeFuture() is
called for a return value of an async function when it is returning
a value of an uninitialized late local variable (such Return
instruction is unreachable).
TEST=runtime/tests/vm/dart/regress_flutter117892_test.dart
Bug: flutter/flutter#117892
Bug: #50894
Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/278094
Change-Id: I046b8f3ca9f3b71200be61568be5f66320d6dad3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278361
Reviewed-by: Siva Annamalai <[email protected]>
Commit-Queue: Alexander Markov <[email protected]>
0 commit comments