Bug 1401200 - Don't call qsort with nullptr in jit::AnalyzeNewScriptDefiniteProperties. r=nbp

This commit is contained in:
André Bargull 2017-09-20 13:27:17 +02:00
Родитель 449785977a
Коммит d775b8e5db
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4266,7 +4266,7 @@ jit::AnalyzeNewScriptDefiniteProperties(JSContext* cx, HandleFunction fun,
// Get a list of instructions using the |this| value in the order they
// appear in the graph.
Vector<MInstruction*> instructions(cx);
Vector<MInstruction*, 4> instructions(cx);
for (MUseDefIterator uses(thisValue); uses; uses++) {
MDefinition* use = uses.def();