Hannes Siebenhandl pushed to branch wip/fendor/homeunit-is-just at Glasgow Haskell Compiler / GHC

WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.

Deleted commits:

1 changed file:

Changes:

  • compiler/GHC/Driver/Main/Hsc.hs
    ... ... @@ -112,7 +112,7 @@ newHscEnv top_dir dflags = do
    112 112
       where
    
    113 113
         home_unit_graph hpt = HUG.unitEnv_singleton
    
    114 114
                             (homeUnitId_ dflags)
    
    115
    -                        (HUG.mkHomeUnitEnv emptyUnitState dflags hpt (DefiniteHomeUnit (homeUnitId_ dflags) Nothing))
    
    115
    +                        (HUG.mkHomeUnitEnv emptyUnitState dflags hpt (panic "newHscEnv.mkHomeUnitEnv: HomeUnit is not initialised, call 'initUnits' before using the HomeUnit field"))
    
    116 116
     
    
    117 117
     newHscEnvWithHUG :: FilePath -> DynFlags -> UnitId -> HomeUnitGraph -> IO HscEnv
    
    118 118
     newHscEnvWithHUG top_dir top_dynflags cur_unit home_unit_graph = do