diff options
| author | Alasdair | 2019-03-09 17:41:14 +0000 |
|---|---|---|
| committer | Alasdair | 2019-03-09 17:45:23 +0000 |
| commit | 9c4c0e8770a43bb097df243050163afd1b31cc8f (patch) | |
| tree | 7ff1dd6122a3dbaa5a2a7b0d46f7f2d6df6c082e /etc | |
| parent | 1d854bb23ffd4bdfad05621ddb8842e7d465baa7 (diff) | |
C: Fix miscompilation of constrained struct field access
For a Int-parameterised struct F('x: Int) = ... the optimizer would
attempt to optimize field access in cases where 'x was known to
constrain the types of the struct fields only locally. Which would
create a type error in the generated C. Now we always use the type
from the global struct type.
However, we previously weren't using struct type quantifiers to
optimize the field representation, which we now do.
Also rename some utility functions to better match the List
functions in the OCaml stdlib.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
