Index: runtime/vm/kernel_binary.cc |
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc |
index 80d293980c68d54802b7ef265a7383e82dd8de0d..55cee46d294e04bf29850131a0b9a4788703499d 100644 |
--- a/runtime/vm/kernel_binary.cc |
+++ b/runtime/vm/kernel_binary.cc |
@@ -1486,6 +1486,8 @@ TypeParameterType* TypeParameterType::ReadFrom(Reader* reader) { |
TypeParameterType* type = new TypeParameterType(); |
type->parameter_ = |
reader->helper()->type_parameters().Lookup(reader->ReadUInt()); |
+ // There is an optional promoted bound, currently ignored. |
+ delete reader->ReadOptional<DartType>(); |
return type; |
} |