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

Unified Diff: runtime/vm/kernel.h

Issue 2866503003: Move a definition to fix a compiler error (Closed)
Patch Set: 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 | « no previous file | runtime/vm/kernel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index 227a225ce9854f202454ad3eb59a13f58a5a7d82..5125d4459a235769b219d59d0311d25931bf8e72 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -935,12 +935,7 @@ class FunctionNode : public TreeNode {
DartType* return_type() { return return_type_; }
Statement* body() { return body_; }
- void ReplaceBody(Statement* body) {
- delete body_;
- // Use static_cast to invoke the conversion function and so avoid triggering
- // ASSERT(pointer_ == NULL) in operator= when overwriting a non-NULL body.
- static_cast<Statement*&>(body_) = body;
- }
+ void ReplaceBody(Statement* body);
TokenPosition position() { return position_; }
TokenPosition end_position() { return end_position_; }
« no previous file with comments | « no previous file | runtime/vm/kernel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698