Bug 889346 - Check for NULL TypeObject when inlining ParallelArray constructors. (r=nmatsakis)

This commit is contained in:
Shu-yu Guo 2013-07-10 18:25:42 -07:00
parent 16c9313251
commit 2df1fc9404

View File

@ -1172,7 +1172,7 @@ IonBuilder::inlineParallelArrayTail(CallInfo &callInfo,
if (returnTypes->unknownObject() || returnTypes->getObjectCount() != 1)
return InliningStatus_NotInlined;
types::TypeObject *typeObject = returnTypes->getTypeObject(0);
if (typeObject->clasp != &ParallelArrayObject::class_)
if (!typeObject || typeObject->clasp != &ParallelArrayObject::class_)
return InliningStatus_NotInlined;
// Create the call and add in the non-this arguments.