Skip to content

Commit

Permalink
Prettyprint asserts better in ImpCode.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Dec 18, 2018
1 parent bf5d371 commit a9cfbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Futhark/CodeGen/ImpCode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ instance Pretty op => Pretty (Code op) where
ppr (SetMem dest from space) =
ppr dest <+> text "<-" <+> ppr from <+> text "@" <> ppr space
ppr (Assert e msg _) =
text "assert" <> parens (commasep [text (show msg), ppr e])
text "assert" <> parens (commasep [ppr msg, ppr e])
ppr (Copy dest destoffset destspace src srcoffset srcspace size) =
text "memcpy" <>
parens (ppMemLoc dest destoffset <> ppr destspace <> comma </>
Expand Down

0 comments on commit a9cfbdd

Please sign in to comment.