Commit cb8935d2 authored by benl's avatar benl
Browse files

Fix bug in LLVM code generator

The bitcast operation always needs a type for the source.
parent bed118a4
......@@ -344,7 +344,11 @@ ppStore val dst
ppCast :: LlvmCastOp -> LlvmVar -> LlvmType -> SDoc
ppCast op from to = ppr op <+> ppr from <+> text "to" <+> ppr to
ppCast op from to
= ppr op
<+> ppr (getVarType from) <+> ppName from
<+> text "to"
<+> ppr to
ppMalloc :: LlvmType -> Int -> SDoc
......
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