Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1808)

Unified Diff: runtime/vm/kernel_reader.cc

Issue 2860163003: Avoid triggering an assert (Closed)
Patch Set: Incorporate review comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/kernel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698