Index: src/crankshaft/lithium.cc |
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc |
index 3b25081f5527eb4bfe7fd2bd4c57c504b2252cbe..3dff459a54a695676091d66cc161d76b48c6b650 100644 |
--- a/src/crankshaft/lithium.cc |
+++ b/src/crankshaft/lithium.cc |
@@ -512,6 +512,7 @@ LInstruction* LChunkBuilderBase::AssignEnvironment(LInstruction* instr, |
HEnvironment* hydrogen_env) { |
int argument_index_accumulator = 0; |
ZoneList<HValue*> objects_to_materialize(0, zone()); |
+ DCHECK_NE(TAIL_CALLER_FUNCTION, hydrogen_env->frame_type()); |
instr->set_environment(CreateEnvironment( |
hydrogen_env, &argument_index_accumulator, &objects_to_materialize)); |
return instr; |