Skip to content

Commit

Permalink
Merge pull request #7389 from rmnattas/offheap-arraycopy-fix
Browse files Browse the repository at this point in the history
Initialize the array variable in generateArrayAddressTree to null
  • Loading branch information
vijaysun-omr authored Jun 20, 2024
2 parents c271952 + 4a57d1f commit 47a9d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/ValuePropagationCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,7 @@ TR::Node *generateArrayAddressTree(

bool is64BitTarget = comp->target().is64Bit() ? true : false;

TR::Node *array;
TR::Node *array = NULL;

#if defined(OMR_GC_SPARSE_HEAP_ALLOCATION)
if (TR::Compiler->om.isOffHeapAllocationEnabled())
Expand Down

0 comments on commit 47a9d24

Please sign in to comment.