aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authoralbertchen-sifive2018-08-08 15:17:13 -0700
committerJack Koenig2018-08-08 15:17:13 -0700
commit0ec4d84349a69b1c62a17d70e369abb91a35ce51 (patch)
tree72a7245912aed87bdc32390b9b31aad157e5a999 /src/main
parent0a2e2c2e4a97fb8d14e7259f779d8398e243e889 (diff)
Use LinkedHashSet in propagateAnnotations (#855)
Fixes #780
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/firrtl/Compiler.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/Compiler.scala b/src/main/scala/firrtl/Compiler.scala
index 603c05f6..b34782b5 100644
--- a/src/main/scala/firrtl/Compiler.scala
+++ b/src/main/scala/firrtl/Compiler.scala
@@ -283,8 +283,8 @@ abstract class Transform extends LazyLogging {
resAnno: AnnotationSeq,
renameOpt: Option[RenameMap]): AnnotationSeq = {
val newAnnotations = {
- val inSet = inAnno.toSet
- val resSet = resAnno.toSet
+ val inSet = mutable.LinkedHashSet() ++ inAnno
+ val resSet = mutable.LinkedHashSet() ++ resAnno
val deleted = (inSet -- resSet).map {
case DeletedAnnotation(xFormName, delAnno) => DeletedAnnotation(s"$xFormName+$name", delAnno)
case anno => DeletedAnnotation(name, anno)