basicblock: stupid index bug @ debug output
[mate.git] / Mate / BasicBlocks.hs
index d4cd2b18bb8cae87ec40ce09d41cc18ae59d5df6..996c6728aa92291c6c76910dc05c0d26226b6df0 100644 (file)
@@ -105,12 +105,10 @@ 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
-  case maybe_bb of
-    Just m -> printMapBB $ rawMapBB m
-    Nothing -> return ()
+  printMapBB mapbb
 #endif
   -- small example how to get information about
   -- exceptions of a method