Skip to content

Commit

Permalink
Fix for bilby verification (partly reverting 4c2d7f0)
Browse files Browse the repository at this point in the history
This possibly breaks stuff: this change certainly had
a purpose?
  • Loading branch information
amblafont authored and Zilin Chen committed Jun 9, 2021
1 parent f7d0941 commit 971d9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogent/src/Cogent/C/Expr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ maybeDecl (Just v) t = return (v,[],[])

-- If assigned to a new var, then recycle
aNewVar :: CType -> CExpr -> VarPool -> Gen v (CExpr, [CBlockItem], [CBlockItem], VarPool)
aNewVar t e p | not __cogent_simpl_cg && not (isTrivialCExpr e)
aNewVar t e p | __cogent_simpl_cg && not (isTrivialCExpr e)
= (extTup3r M.empty) . (first3 variable) <$> declareInit t e p
| otherwise = return (e,[],[],p)

Expand Down

0 comments on commit 971d9fd

Please sign in to comment.