Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index e59048a0b56c342ed4fe0bb72d819685e24cff85..51e77069b223461ca2533760c79011fdbd13e7fc 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5791,9 +5791,13 @@ void HOptimizedGraphBuilder::HandlePolymorphicNamedFieldAccess( |
} |
ASSERT(join != NULL); |
- join->SetJoinId(ast_id); |
- set_current_block(join); |
- if (!ast_context()->IsEffect()) ast_context()->ReturnValue(Pop()); |
+ if (join->HasPredecessor()) { |
+ join->SetJoinId(ast_id); |
+ set_current_block(join); |
+ if (!ast_context()->IsEffect()) ast_context()->ReturnValue(Pop()); |
+ } else { |
+ set_current_block(NULL); |
+ } |
} |