| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index ff9cc5b46b4cf1be4cb8eb636021ef1b00922d64..255ec689657931a1d52cb62175f31d449e26011a 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -4408,7 +4408,7 @@ AllocationResult Heap::AllocateFixedArrayWithFiller(int length,
|
| if (length == 0) return empty_fixed_array();
|
|
|
| DCHECK(!InNewSpace(filler));
|
| - HeapObject* result;
|
| + HeapObject* result = nullptr;
|
| {
|
| AllocationResult allocation = AllocateRawFixedArray(length, pretenure);
|
| if (!allocation.To(&result)) return allocation;
|
| @@ -4505,7 +4505,7 @@ AllocationResult Heap::AllocateExtendedConstantPoolArray(
|
| int size = ConstantPoolArray::SizeForExtended(small, extended);
|
| AllocationSpace space = SelectSpace(size, TENURED);
|
|
|
| - HeapObject* object;
|
| + HeapObject* object = nullptr;
|
| {
|
| AllocationResult allocation =
|
| AllocateRaw(size, space, OLD_SPACE, kDoubleAligned);
|
|
|