Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 3a1598431f1057ef0ceda75572875ccec50b166d..6744dbb10f0f89bbc9660251b5e0146daca1ed37 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8134,9 +8134,8 @@ void HOptimizedGraphBuilder::VisitArithmeticExpression(BinaryOperation* expr) { |
void HOptimizedGraphBuilder::HandleLiteralCompareTypeof(CompareOperation* expr, |
Expression* sub_expr, |
Handle<String> check) { |
- CHECK_ALIVE(VisitForValue(sub_expr)); |
- HTypeof* htypeof = HTypeof::cast(Pop()); |
- HValue* value = htypeof->value(); |
+ CHECK_ALIVE(VisitForTypeOf(sub_expr)); |
+ HValue* value = Pop(); |
HTypeofIsAndBranch* instr = new(zone()) HTypeofIsAndBranch(value, check); |
instr->set_position(expr->position()); |
return ast_context()->ReturnControl(instr, expr->id()); |