Index: runtime/vm/kernel_reader.cc |
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc |
index 458ad1b90e3ac166fbe5f80320904500dced7b94..1ddd641c9155bb545659bbdd721b26338da307e9 100644 |
--- a/runtime/vm/kernel_reader.cc |
+++ b/runtime/vm/kernel_reader.cc |
@@ -212,11 +212,13 @@ Object& KernelReader::ReadProgram() { |
// to be patched. |
if (procedure != NULL) { |
// We will handle the StaticGet specially and will not use the name. |
+ // Note that we pass "true" in cannot_stream to avoid trying to stream |
+ // a non-existing part of the binary. |
// |
// TODO(kmillikin): we are leaking the new function body. Find a way to |
// deallocate it. |
procedure->function()->ReplaceBody( |
- new ReturnStatement(new StaticGet(NameIndex()))); |
+ new ReturnStatement(new StaticGet(NameIndex(), false), false)); |
} |
return library; |
} |