basicblock: stupid index bug @ debug output
[mate.git] / Mate / BasicBlocks.hs
index c2bdcd7587b43eeef08f426994259944a6151957..996c6728aa92291c6c76910dc05c0d26226b6df0 100644 (file)
@@ -105,7 +105,7 @@ parseMethod cls methodname sig = do
   let nametype = methodNameType methoddirect
   let argscount = methodGetArgsCount nametype + (if isStatic then 0 else 1)
 
-  let msig = methodSignature $ classMethods cls !! 1
+  let msig = methodSignature method
   printfBb "BB: analysing \"%s\"\n" $ toString (methodname `B.append` ": " `B.append` encode msig)
 #ifdef DBG_BB
   printMapBB mapbb