Skip to content

Commit 50aae78

Browse files
bkonyiCommit Queue
authored and
Commit Queue
committed
[ VM / AOT ] Return false from Function::is_optimizable() rather than calling UNREACHABLE()
Fixes dart-lang/sdk#50516 TEST=Manual testing Change-Id: Icc6df5dc82e1a8d1977b7b49af0215330554279f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/271043 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Ben Konyi <[email protected]>
1 parent ef4f5a3 commit 50aae78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/vm/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3886,7 +3886,7 @@ class Function : public Object {
38863886
// which have been de-optimized too many times.
38873887
bool is_optimizable() const {
38883888
#if defined(DART_PRECOMPILED_RUNTIME)
3889-
UNREACHABLE();
3889+
return false;
38903890
#else
38913891
return untag()->packed_fields_.Read<UntaggedFunction::PackedOptimizable>();
38923892
#endif

0 commit comments

Comments
 (0)