Commit 251816ab authored by michael_dawson's avatar michael_dawson Committed by Commit bot

AIX: fix another may be uninitialized failure

fix two additional cases in heap.cc where the AIX
compiler is now reporting that a variable may be
uninitialized.

R=svenpanne@chromium.org, mbrandy@us.ibm.com

BUG=

Review URL: https://codereview.chromium.org/1157053007

Cr-Commit-Position: refs/heads/master@{#28779}
parent 0962f980
......@@ -4412,7 +4412,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;
......@@ -4509,7 +4509,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment