Fixed retyping non-packed records into arrays
This commit is contained in:
parent
9f5b685c02
commit
3566c6206f
|
@ -287,6 +287,9 @@ declareSizesArray = occamOnlyPass "Declare array-size arrays"
|
||||||
-- element of its _sizes array.
|
-- element of its _sizes array.
|
||||||
A.UnknownDimension -> A.ExprVariable m $ specificDimSize i v
|
A.UnknownDimension -> A.ExprVariable m $ specificDimSize i v
|
||||||
| (d, i) <- zip ds [0..]]
|
| (d, i) <- zip ds [0..]]
|
||||||
|
-- Must be an unpacked record if it's not BIJust:
|
||||||
|
(_, A.Record {}) ->
|
||||||
|
return $ A.BytesInType m tSrc
|
||||||
_ -> dieP m "Cannot compute size of source type"
|
_ -> dieP m "Cannot compute size of source type"
|
||||||
|
|
||||||
-- Build the _sizes array for the destination.
|
-- Build the _sizes array for the destination.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user