Commit 4e342174 by Zachary Snow

struct conversion handles decls with unpacked dimensions

parent 5583eaec
...@@ -159,7 +159,9 @@ collectTFArgsM _ = return () ...@@ -159,7 +159,9 @@ collectTFArgsM _ = return ()
traverseDeclM :: Decl -> State Types Decl traverseDeclM :: Decl -> State Types Decl
traverseDeclM origDecl = do traverseDeclM origDecl = do
case origDecl of case origDecl of
Variable _ t x _ _ -> modify $ Map.insert x t Variable _ t x a _ -> do
let (tf, rs) = typeRanges t
modify $ Map.insert x (tf $ a ++ rs)
Parameter t x _ -> modify $ Map.insert x t Parameter t x _ -> modify $ Map.insert x t
Localparam t x _ -> modify $ Map.insert x t Localparam t x _ -> modify $ Map.insert x t
return origDecl return origDecl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment