summaryrefslogtreecommitdiff
path: root/compiler/GHC/StgToByteCode.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/StgToByteCode.hs')
-rw-r--r--compiler/GHC/StgToByteCode.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/GHC/StgToByteCode.hs b/compiler/GHC/StgToByteCode.hs
index 0d6af799de..c3a1d6ff94 100644
--- a/compiler/GHC/StgToByteCode.hs
+++ b/compiler/GHC/StgToByteCode.hs
@@ -1722,7 +1722,9 @@ pushLiteral padded lit =
LitChar {} -> code WordRep
LitNullAddr -> code AddrRep
LitString {} -> code AddrRep
- LitRubbish {} -> code WordRep
+ LitRubbish rep -> case runtimeRepPrimRep (text "pushLiteral") rep of
+ [pr] -> code pr
+ _ -> pprPanic "pushLiteral" (ppr lit)
LitNumber nt _ -> case nt of
LitNumInt -> code IntRep
LitNumWord -> code WordRep