diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-11 13:05:24 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-02-11 13:08:53 +0000 |
commit | 594123f57779464c9b7c0f51445639e15b8bd55c (patch) | |
tree | 5a551cf625050cf0ef1b7de269443d1ad8782a3b | |
parent | 639e702b6129f501c539b158b982ed8489e3d09c (diff) | |
download | haskell-594123f57779464c9b7c0f51445639e15b8bd55c.tar.gz |
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: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r-- | compiler/cmm/CmmOpt.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cmm/CmmOpt.hs b/compiler/cmm/CmmOpt.hs index 8d1641a7d4..38c399ebc4 100644 --- a/compiler/cmm/CmmOpt.hs +++ b/compiler/cmm/CmmOpt.hs @@ -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 |