X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FnativeGen%2FRegAlloc%2FGraph%2FSpill.hs;h=7e744e6337e898183946e8e64df8f1e59be4a4ad;hp=2ce028f185c73699711ba4bbdf9979e85c1aa9c0;hb=14a496fd0b3aa821b69eb02736d5f41086576761;hpb=00a05a5c09b097e3afa8d21058a3a4d8ed410ad4 diff --git a/compiler/nativeGen/RegAlloc/Graph/Spill.hs b/compiler/nativeGen/RegAlloc/Graph/Spill.hs index 2ce028f..7e744e6 100644 --- a/compiler/nativeGen/RegAlloc/Graph/Spill.hs +++ b/compiler/nativeGen/RegAlloc/Graph/Spill.hs @@ -293,10 +293,9 @@ type SpillM a = State SpillS a newUnique :: SpillM Unique newUnique = do us <- gets stateUS - case splitUniqSupply us of - (us1, us2) - -> do let uniq = uniqFromSupply us1 - modify $ \s -> s { stateUS = us2 } + case takeUniqFromSupply us of + (uniq, us') + -> do modify $ \s -> s { stateUS = us' } return uniq accSpillSL (r1, s1, l1) (_, s2, l2)