From: David Terei Date: Mon, 19 Jul 2010 10:48:23 +0000 (+0000) Subject: LLVM: Fix up botched last commit X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=3dd67f8333416ea6d81ef1eb91d50e0e2d29e5fe LLVM: Fix up botched last commit --- diff --git a/compiler/llvmGen/LlvmMangler.hs b/compiler/llvmGen/LlvmMangler.hs index 0053e23..390f4a8 100644 --- a/compiler/llvmGen/LlvmMangler.hs +++ b/compiler/llvmGen/LlvmMangler.hs @@ -157,7 +157,7 @@ fixupStack fun nfun | BS.null nfun = let -- fixup sub op (a, b) = BS.breakSubstring (BS.pack ", %esp\n") fun (a', num) = BS.breakEnd dollarPred a - num' = BS.pack $ show (read (BS.unpack num) + 4:Int) + num' = BS.pack $ show (read (BS.unpack num) + 4::Int) fix = a' `BS.append` num' in if BS.null b then nfun `BS.append` a @@ -172,7 +172,7 @@ fixupStack fun nfun = (jmp, b') = BS.break eolPred b (a', numx) = BS.breakEnd dollarPred a (num, x) = BS.break commaPred numx - num' = BS.pack $ show (read (BS.unpack num) + 4:Int) + num' = BS.pack $ show (read (BS.unpack num) + 4::Int) fix = a' `BS.append` num' `BS.append` x `BS.append` jmp in if BS.null b then nfun `BS.append` a