Skip to content

Commit

Permalink
[VM/nnbd] Fix canonicalization of type 'Never' (fixes #40249).
Browse files Browse the repository at this point in the history
Change-Id: I160efcff977c385309a7a7034c67779441dfbff3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134882
Reviewed-by: Ryan Macnak <[email protected]>
Commit-Queue: Régis Crelier <[email protected]>
  • Loading branch information
crelier authored and [email protected] committed Feb 7, 2020
1 parent 6f6797e commit 4d10cd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/vm/clustered_snapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5007,6 +5007,7 @@ void Serializer::AddVMIsolateBaseObjects() {
AddBaseObject(Object::zero_array().raw(), "Array", "<zero_array>");
AddBaseObject(Object::dynamic_type().raw(), "Type", "<dynamic type>");
AddBaseObject(Object::void_type().raw(), "Type", "<void type>");
AddBaseObject(Object::never_type().raw(), "Type", "<never type>");
AddBaseObject(Object::empty_type_arguments().raw(), "TypeArguments", "[]");
AddBaseObject(Bool::True().raw(), "bool", "true");
AddBaseObject(Bool::False().raw(), "bool", "false");
Expand Down Expand Up @@ -5498,6 +5499,7 @@ void Deserializer::AddVMIsolateBaseObjects() {
AddBaseObject(Object::zero_array().raw());
AddBaseObject(Object::dynamic_type().raw());
AddBaseObject(Object::void_type().raw());
AddBaseObject(Object::never_type().raw());
AddBaseObject(Object::empty_type_arguments().raw());
AddBaseObject(Bool::True().raw());
AddBaseObject(Bool::False().raw());
Expand Down

0 comments on commit 4d10cd9

Please sign in to comment.