summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Lint.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2023-04-26 13:52:51 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2023-04-27 12:36:11 +0200
commit04ed536d9dd91a77725ca2ae4485f6146f7d9a8c (patch)
tree81f9696dd556e0970730f13724d84cd972136ea8 /compiler/GHC/Core/Lint.hs
parentab6c1d295cd9f492838dbd481ecc2a66bbd17393 (diff)
downloadhaskell-wip/usage-env.tar.gz
linear types: Don't add external names to the usage envwip/usage-env
This has no observable effect, but avoids storing useless data.
Diffstat (limited to 'compiler/GHC/Core/Lint.hs')
-rw-r--r--compiler/GHC/Core/Lint.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Core/Lint.hs b/compiler/GHC/Core/Lint.hs
index 2465a2ffdf..483d7168f7 100644
--- a/compiler/GHC/Core/Lint.hs
+++ b/compiler/GHC/Core/Lint.hs
@@ -3210,7 +3210,7 @@ varCallSiteUsage :: Id -> LintM UsageEnv
varCallSiteUsage id =
do m <- getUEAliases
return $ case lookupNameEnv m (getName id) of
- Nothing -> unitUE id OneTy
+ Nothing -> singleUsageUE id
Just id_ue -> id_ue
ensureEqTys :: LintedType -> LintedType -> SDoc -> LintM ()