Fixed non-top-level records in the C backend
This commit is contained in:
parent
40e0399e4c
commit
41cf599ebe
|
@ -1500,7 +1500,7 @@ cgenRecordTypeSpec extraStuff n attr fs
|
|||
cgenForwardDeclaration :: Bool -> A.Specification -> CGen ()
|
||||
cgenForwardDeclaration _ (A.Specification _ n st@(A.Proc _ _ _ _))
|
||||
= genProcSpec TopLevel n st True
|
||||
cgenForwardDeclaration True (A.Specification _ n (A.RecordType _ b fs))
|
||||
cgenForwardDeclaration _ (A.Specification _ n (A.RecordType _ b fs))
|
||||
= call genRecordTypeSpec False n b fs
|
||||
cgenForwardDeclaration _ _ = return ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user