summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/nativeGen/Format.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nativeGen/Format.hs b/compiler/nativeGen/Format.hs
index 92a8ef86f1..00811f1375 100644
--- a/compiler/nativeGen/Format.hs
+++ b/compiler/nativeGen/Format.hs
@@ -57,7 +57,9 @@ intFormat width
W16 -> II16
W32 -> II32
W64 -> II64
- other -> pprPanic "Format.intFormat" (ppr other)
+ other -> sorry $ "The native code generator cannot " ++
+ "produce code for Format.intFormat " ++ show other
+ ++ "\n\tConsider using the llvm backend with -fllvm"
-- | Get the float format of this width.