diff options
| author | Alasdair Armstrong | 2018-09-13 17:38:09 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-09-13 17:38:09 +0100 |
| commit | 03387349dceaecd8feb708eb467a0bde372cb664 (patch) | |
| tree | 7fa4134a58d5d76fe345a680eed1bd9e6a079352 /src/pp.ml | |
| parent | 61abeccf6c37169bc22a1674897caf482195857f (diff) | |
C: Fix an issue with assigning to unitialized variables at end of blocks
Assigning to an uninitialized variable as the last statement in a
block is almost certainly a type, and if that occurs then the
lift_assign re-write will introduce empty blocks causing this error to
occur. Now when we see such an empty block when converting to A-normal
form we turn it into unit, and emit a warning stating that an empty
block has been found as well as the probable cause (uninitialized
variable).
Diffstat (limited to 'src/pp.ml')
0 files changed, 0 insertions, 0 deletions
