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