basicblocks: also consider back references
[mate.git] / Mate / X86CodeGen.hs
index 23165ddb1bfcb4cfe74838e1d1d261b2a5ea939c..270368ffb78cbe3c9511ee0dbfba4afb1bb8832f 100644 (file)
@@ -157,6 +157,8 @@ emitFromBB cls hmap =  do
           let calls' = calls `M.union` (M.fromList $ catMaybes cs)
           case successor bb of
             Return -> return (calls', bbstarts')
+            FallThrough t -> do
+              efBB (t, hmap M.! t) calls' bbstarts' lmap
             OneTarget t -> do
               efBB (t, hmap M.! t) calls' bbstarts' lmap
             TwoTarget t1 t2 -> do