Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 8fee623d1b39e7d20b599518c54e63e45c9b6f35..5c67797b020c70d025da5fe2cbbbcbfba4382364 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -581,8 +581,7 @@ void AstGraphBuilder::CreateGraphBody(bool stack_check) { |
// Visit illegal re-declaration and bail out if it exists. |
if (scope->HasIllegalRedeclaration()) { |
- AstEffectContext for_effect(this); |
- scope->VisitIllegalRedeclaration(this); |
+ VisitForEffect(scope->GetIllegalRedeclaration()); |
return; |
} |