[commit: ghc] master: Put stable pointer names in the name cache. (e156361)

git at git.haskell.org git at git.haskell.org
Sun Sep 20 10:42:05 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e156361fd1657184c35cca78e6b1c43836dec0ec/ghc

>---------------------------------------------------------------

commit e156361fd1657184c35cca78e6b1c43836dec0ec
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Sun Sep 20 12:19:17 2015 +0200

    Put stable pointer names in the name cache.
    
    Test Plan: validate
    
    Reviewers: simonpj, austin, bgamari
    
    Reviewed By: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1249


>---------------------------------------------------------------

e156361fd1657184c35cca78e6b1c43836dec0ec
 compiler/deSugar/DsExpr.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/deSugar/DsExpr.hs b/compiler/deSugar/DsExpr.hs
index d3a8156..32bd27b 100644
--- a/compiler/deSugar/DsExpr.hs
+++ b/compiler/deSugar/DsExpr.hs
@@ -58,6 +58,7 @@ import Bag
 import Outputable
 import FastString
 
+import IfaceEnv
 import IdInfo
 import Data.IORef       ( atomicModifyIORef', modifyIORef )
 
@@ -985,10 +986,9 @@ badMonadBind rhs elt_ty flag_doc
 --
 mkSptEntryName :: SrcSpan -> DsM Name
 mkSptEntryName loc = do
-    uniq <- newUnique
     mod  <- getModule
     occ  <- mkWrapperName "sptEntry"
-    return $ mkExternalName uniq mod occ loc
+    newGlobalBinder mod occ loc
   where
     mkWrapperName what
       = do dflags <- getDynFlags



More information about the ghc-commits mailing list