Fix inverted test for platformUnregisterised (should fix the optllvm breakage)
authorSimon Marlow <marlowsd@gmail.com>
Tue, 21 Aug 2012 11:48:34 +0000 (12:48 +0100)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 21 Aug 2012 11:48:34 +0000 (12:48 +0100)
compiler/llvmGen/LlvmCodeGen/Base.hs

index a9dfebb..77eb845 100644 (file)
@@ -85,8 +85,8 @@ widthToLlvmInt w = LMInt $ widthInBits w
 -- | GHC Call Convention for LLVM
 llvmGhcCC :: DynFlags -> LlvmCallConvention
 llvmGhcCC dflags
- | platformUnregisterised (targetPlatform dflags) = CC_Ncc 10
- | otherwise                                      = CC_Ccc
+ | platformUnregisterised (targetPlatform dflags) = CC_Ccc
+ | otherwise                                      = CC_Ncc 10
 
 -- | Llvm Function type for Cmm function
 llvmFunTy :: DynFlags -> LlvmType