[Git][ghc/ghc][wip/bytecode-serialize-clean] compiler: pick fhv based on occname in hscCompileCoreExpr'

Cheng Shao (@TerrorJack) gitlab at gitlab.haskell.org
Sat Feb 15 00:38:49 UTC 2025



Cheng Shao pushed to branch wip/bytecode-serialize-clean at Glasgow Haskell Compiler / GHC


Commits:
87f59e0d by Cheng Shao at 2025-02-15T00:38:37+00:00
compiler: pick fhv based on occname in hscCompileCoreExpr'

- - - - -


1 changed file:

- compiler/GHC/Driver/Main.hs


Changes:

=====================================
compiler/GHC/Driver/Main.hs
=====================================
@@ -2817,7 +2817,7 @@ hscCompileCoreExpr' hsc_env srcspan ds_expr = do
         Linkable bco_time this_mod $ NE.singleton $ BCOs bcos
       {- Get the HValue for the root -}
       return (expectJust "hscCompileCoreExpr'"
-         $ lookup (idName binding_id) fv_hvs, mods_needed, units_needed)
+         $ lookup (occName binding_name) [(occName nm, fhv) | (nm, fhv) <- fv_hvs], mods_needed, units_needed)
 
 
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/87f59e0de0bec3128a39301c643acaed4b1de046

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/87f59e0de0bec3128a39301c643acaed4b1de046
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250214/03d3a0da/attachment.html>


More information about the ghc-commits mailing list