summaryrefslogtreecommitdiff
path: root/compiler/GHC/Data/Graph/Ops.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Data/Graph/Ops.hs')
-rw-r--r--compiler/GHC/Data/Graph/Ops.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Data/Graph/Ops.hs b/compiler/GHC/Data/Graph/Ops.hs
index d2671f252d..dc90b9e5ad 100644
--- a/compiler/GHC/Data/Graph/Ops.hs
+++ b/compiler/GHC/Data/Graph/Ops.hs
@@ -633,7 +633,7 @@ checkNode graph node
$ nonDetEltsUniqSet $ nodeConflicts node
-- See Note [Unique Determinism and code generation]
- , neighbourColors <- catMaybes $ map nodeColor neighbors
+ , neighbourColors <- mapMaybe nodeColor neighbors
, elem color neighbourColors
= False