Skip to content

Commit

Permalink
make analog attachment order fixed with linked hash map (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliew authored and jackkoenig committed May 29, 2019
1 parent 228c9a4 commit eb64bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/firrtl/passes/ExpandWhens.scala
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ object ExpandWhens extends Pass {
case class AttachAcc(exprs: Seq[WrappedExpression], idx: Int)
// Map from every attached expression to its corresponding AttachAcc
// (many keys will point to same value)
val attachMap = mutable.HashMap.empty[WrappedExpression, AttachAcc]
val attachMap = mutable.LinkedHashMap.empty[WrappedExpression, AttachAcc]
for (Attach(_, es) <- attaches) {
val exprs = es.map(we(_))
val acc = exprs.map(attachMap.get(_)).flatten match {
Expand Down

0 comments on commit eb64bf5

Please sign in to comment.