Commit 594123f5 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

IcmmMachOpFoldM: clarify panic message

When adding a new primop cinimod noticed
uninformative ghc panic:
    cmmMachOpFoldM: unknown unary op

This change tweaks panic to contain the op:
    cmmMachOpFoldM: unknown unary op: MO_F_Neg W64
Signed-off-by: default avatarSergei Trofimovich <>
parent 639e702b
......@@ -79,7 +79,7 @@ cmmMachOpFoldM _ op [CmmLit (CmmInt x rep)]
MO_SS_Conv from to -> CmmLit (CmmInt (narrowS from x) to)
MO_UU_Conv from to -> CmmLit (CmmInt (narrowU from x) to)
_ -> panic "cmmMachOpFoldM: unknown unary op"
_ -> panic $ "cmmMachOpFoldM: unknown unary op: " ++ show op
-- Eliminate conversion NOPs
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