Skip to content

Commit

Permalink
Fix code duplication bug in codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
aprocter committed May 9, 2016
1 parent 446c842 commit 2b3714d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReWire/Core/Transformations/ToPreHDL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ funExpr e = case ef of
then return (c_scr `mkSeq` e1' `mkSeq` CaseIf [(BoolVar e1'l,e1'c)],r_res)
else do (e2',e2'l) <- funExpr e2
let cases = [(BoolVar e1'l,e1'c),(BoolVar e2'l,e2')]
return (c_scr `mkSeq` e1' `mkSeq` e2' `mkSeq` CaseIf cases,r_res)
return (c_scr `mkSeq` e1' {-`mkSeq` e2'-} `mkSeq` CaseIf cases,r_res)
_ -> fail "funExpr: encountered case expression in function position"
where (ef:eargs) = flattenApp e

Expand Down

0 comments on commit 2b3714d

Please sign in to comment.