
#11550: ghc-HEAD -DDEBUG is broken (possiby by D1880) -------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1889 Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I responded to the Phab: There's an easier way. Use the old code for `stgArgHasCafRefs` use {{{ stgIdHasCafRefs :: Id -> Bool stgIdHasCafRefs id = isGlobalId id && mayHaveCafRefs (idCafInfo id) }}} After `TidyPgm`, all top-level and imported Ids are `GlobalIds`. Needs a comment of course! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11550#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler