Index: runtime/vm/kernel_reader.cc |
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc |
index 127ad32231e35ef54c487ad1b4f35bdcaf4621c6..458ad1b90e3ac166fbe5f80320904500dced7b94 100644 |
--- a/runtime/vm/kernel_reader.cc |
+++ b/runtime/vm/kernel_reader.cc |
@@ -213,9 +213,9 @@ Object& KernelReader::ReadProgram() { |
if (procedure != NULL) { |
// We will handle the StaticGet specially and will not use the name. |
// |
- // TODO(kmillikin): we are leaking the function body. Find a way to |
+ // TODO(kmillikin): we are leaking the new function body. Find a way to |
// deallocate it. |
- procedure->function()->set_body( |
+ procedure->function()->ReplaceBody( |
new ReturnStatement(new StaticGet(NameIndex()))); |
} |
return library; |