This repository has been archived by the owner on May 18, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some work-arounds for Ceval of zero-size arrays
The Values.mo structure does not store the type of the array which means that `Values.ARRAY({})` becomes `{} /* T_UNKNOWN[0] */` instead of containing the actual type. We now have some work-arounds for this case: - cevalIfConstant will not try to evaluate literal values - If an empty array is returned in cevalIfConstant, we backpatch the array type to the expected type (but this only works for the top-level expression; hopefully this is enough to not propagate unknown dimensions too far though). Belonging to [master]: - #2074
- Loading branch information
1 parent
d1a57b2
commit cdf224b
Showing
4 changed files
with
62 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters