Commit d348acd5 authored by niteria's avatar niteria
Browse files

Serialize vParallelTyCons in a stable order

nameSetElems can introduce nondeterminism and while I haven't
observed this being a problem in practice (possibly because this
is dead code) there's no downside to doing this.

Test Plan: ./validate

Reviewers: bgamari, austin, simonpj, simonmar

Reviewed By: simonmar

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2296

GHC Trac Issues: #4012
parent cb9f635e
......@@ -327,7 +327,7 @@ mkIface_ hsc_env maybe_old_fingerprint
, ifaceVectInfoTyCon = [tyConName t | (t, t_v) <- nameEnvElts vTyCon, t /= t_v]
, ifaceVectInfoTyConReuse = [tyConName t | (t, t_v) <- nameEnvElts vTyCon, t == t_v]
, ifaceVectInfoParallelVars = [Var.varName v | v <- varSetElems vParallelVars]
, ifaceVectInfoParallelTyCons = nameSetElems vParallelTyCons
, ifaceVectInfoParallelTyCons = nameSetElemsStable vParallelTyCons
}
-----------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment