Index: runtime/vm/kernel_binary.cc |
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc |
index e88f261b9061f79aa0a0dbbb30cf41fee354af94..47d83bbb230c85b23ad39921e765aad9a2db72a5 100644 |
--- a/runtime/vm/kernel_binary.cc |
+++ b/runtime/vm/kernel_binary.cc |
@@ -1599,6 +1599,9 @@ SwitchStatement* SwitchStatement::ReadFrom(Reader* reader) { |
SwitchCase* SwitchCase::ReadFrom(Reader* reader) { |
TRACE_READ_OFFSET(); |
expressions_.ReadFromStatic<Expression>(reader); |
+ for (intptr_t i = 0; i < expressions_.length(); ++i) { |
+ expressions_[i]->set_position(reader->ReadPosition()); |
+ } |
is_default_ = reader->ReadBool(); |
body_ = Statement::ReadFrom(reader); |
return this; |