b205ea18cb
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 Fixes https://github.com/flutter/flutter/issues/117892 Change-Id: I63f0ca32d6246487f5c33d983cef9bd22aaa2fb8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278094 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>