diff --git a/ghc/compiler/nativeGen/StixPrim.lhs b/ghc/compiler/nativeGen/StixPrim.lhs
index 388bb864e074e3c5814bded8227f8d21c90b531c..1f5fde1da62b8317553e1497d02ba7997c12e035 100644
--- a/ghc/compiler/nativeGen/StixPrim.lhs
+++ b/ghc/compiler/nativeGen/StixPrim.lhs
@@ -278,7 +278,7 @@ primCode lhs (CCallOp (CCall (StaticTarget fn) is_asm may_gc cconv)) rhs
 	    case getAmodeRep x of
 	      ArrayRep      -> StIndex PtrRep base arrPtrsHS
 	      ByteArrayRep  -> StIndex IntRep base arrWordsHS
-	      ForeignObjRep -> StIndex PtrRep base fixedHS
+	      ForeignObjRep -> StInd PtrRep (StIndex PtrRep base fixedHS)
 	      _ -> base
 
     ccall = case lhs of