diff options
author | Bartosz Nitka <niteria@gmail.com> | 2016-05-24 02:56:59 -0700 |
---|---|---|
committer | Bartosz Nitka <niteria@gmail.com> | 2016-05-24 04:33:21 -0700 |
commit | 4c6e69d58a300d6ef440d326a3fd29b58b284fa1 (patch) | |
tree | 6653f56c150c3aa988a96c50359d53f27f2edb01 /compiler/codeGen | |
parent | 8f7d01632cd79957fe42ea37103ca9b91a1c54f5 (diff) | |
download | haskell-4c6e69d58a300d6ef440d326a3fd29b58b284fa1.tar.gz |
Document some benign nondeterminism
I've changed the functions to their nonDet equivalents and explained
why they're OK there. This allowed me to remove foldNameSet,
foldVarEnv, foldVarEnv_Directly, foldVarSet and foldUFM_Directly.
Test Plan: ./validate, there should be no change in behavior
Reviewers: simonpj, simonmar, austin, goldfire, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2244
GHC Trac Issues: #4012
Diffstat (limited to 'compiler/codeGen')
-rw-r--r-- | compiler/codeGen/StgCmmEnv.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/codeGen/StgCmmEnv.hs b/compiler/codeGen/StgCmmEnv.hs index 8dbb646cdc..d60828cd0d 100644 --- a/compiler/codeGen/StgCmmEnv.hs +++ b/compiler/codeGen/StgCmmEnv.hs @@ -44,6 +44,7 @@ import Control.Monad import Name import StgSyn import Outputable +import UniqFM ------------------------------------- -- Non-void types @@ -158,7 +159,8 @@ cgLookupPanic id pprPanic "StgCmmEnv: variable not found" (vcat [ppr id, text "local binds for:", - vcat [ ppr (cg_id info) | info <- varEnvElts local_binds ] + pprUFM local_binds $ \infos -> + vcat [ ppr (cg_id info) | info <- infos ] ]) |