projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
019e55a
)
Ignore cast expressions when generating VHDL.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Tue, 23 Jun 2009 12:54:24 +0000
(14:54 +0200)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Tue, 23 Jun 2009 12:54:24 +0000
(14:54 +0200)
VHDL.hs
patch
|
blob
|
history
diff --git
a/VHDL.hs
b/VHDL.hs
index eb454203ebeda699ebcc9c595f4a6f395dbdfee7..b2d5b30e448964d450934b88a343d309a44c8b09 100644
(file)
--- a/
VHDL.hs
+++ b/
VHDL.hs
@@
-264,6
+264,11
@@
mkConcSm ::
(CoreSyn.CoreBndr, CoreSyn.CoreExpr) -- ^ The binding to process
-> VHDLState [AST.ConcSm] -- ^ The corresponding VHDL component instantiations.
+
+-- Ignore Cast expressions, they should not longer have any meaning as long as
+-- the type works out.
+mkConcSm (bndr, Cast expr ty) = mkConcSm (bndr, expr)
+
mkConcSm (bndr, app@(CoreSyn.App _ _))= do
let (CoreSyn.Var f, args) = CoreSyn.collectArgs app
let valargs' = filter isValArg args