summaryrefslogtreecommitdiff
path: root/ghc/compiler/nativeGen/StixPrim.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/compiler/nativeGen/StixPrim.lhs')
-rw-r--r--ghc/compiler/nativeGen/StixPrim.lhs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc/compiler/nativeGen/StixPrim.lhs b/ghc/compiler/nativeGen/StixPrim.lhs
index 1721e73344..7583e1cd27 100644
--- a/ghc/compiler/nativeGen/StixPrim.lhs
+++ b/ghc/compiler/nativeGen/StixPrim.lhs
@@ -114,6 +114,10 @@ foreignCallCode lhs call@(CCall (CCallSpec ctarget cconv safety)) rhs
Int64Rep -> Int64Rep
Word64Rep -> Word64Rep
other -> IntRep
+
+-- a bit late to catch this here..
+foreignCallCode _ DNCall{} _
+ = panic "foreignCallCode: .NET interop not supported via NCG; compile with -fvia-C"
\end{code}
%************************************************************************