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

Unified Diff: src/ast.cc

Issue 22799023: Fix call of finalized virtual function. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 8f69bd705923b7e9136d3881ebffca5f4507d9e8..3c968528dde6dad95edb0da3fa94213772d6cc6d 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -967,7 +967,8 @@ void* RegExpUnparser::VisitText(RegExpText* that, void* data) {
stream()->Add("(!");
for (int i = 0; i < that->elements()->length(); i++) {
stream()->Add(" ");
- that->elements()->at(i).data.u_atom->Accept(this, data);
+ static_cast<RegExpTree*>(that->elements()->at(i).data.u_atom)->Accept(
+ this, data);
}
stream()->Add(")");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698