Stopped abbreviations of arrays of records being pulled up
This commit is contained in:
parent
dc64b5e664
commit
1e21895276
|
@ -236,6 +236,7 @@ removeNesting = pass "Pull nested definitions to top level"
|
|||
-- C doesn't allow us to pull up pointers to records to the top-level
|
||||
abbrevRecord :: A.SpecType -> Bool
|
||||
abbrevRecord (A.Is _ _ (A.Record {}) _) = True
|
||||
abbrevRecord (A.Is _ _ (A.Array _ (A.Record {})) _) = True
|
||||
abbrevRecord _ = False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user