Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 0df827add74fb0a9ecf2e17cb35eb0582084a802..696df5cccef882f9e8cd9b0340c272dcccbf2b01 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -1398,8 +1398,7 @@ Reduction JSTypedLowering::ReduceJSCreate(Node* node) { |
target_type->AsConstant()->Value()->IsJSFunction()) { |
Handle<JSFunction> constructor = |
Handle<JSFunction>::cast(target_type->AsConstant()->Value()); |
- // Check that function is a constructor. |
- if (!constructor->IsConstructor()) return NoChange(); |
+ DCHECK(constructor->IsConstructor()); |
// Force completion of inobject slack tracking before |
// generating code to finalize the instance size. |
if (constructor->IsInobjectSlackTrackingInProgress()) { |