Skip to content
Success

Changes

Summary

  1. Initialize the array variable in generateArrayAddressTree to null (commit: 4a57d1f) (details)
Commit 4a57d1fb6c799fab0c826b4833d6a7c126d59502 by Abdulrahman Alattas
Initialize the array variable in generateArrayAddressTree to null

The code populates the `TR::Node* array` variable if a non-zero offset exist.

The variable is passed to `generateArrayElementAddressTrees` which
depends on if the variable is null to indicate a zero offset.

Given that the variable is not initialized to null a value may be passed
causing wrong generated trees.

Signed-off-by: Abdulrahman Alattas <rmnattas@gmail.com>
(commit: 4a57d1f)
The file was modified compiler/optimizer/ValuePropagationCommon.cpp (diff)