From 0ec4d84349a69b1c62a17d70e369abb91a35ce51 Mon Sep 17 00:00:00 2001 From: albertchen-sifive Date: Wed, 8 Aug 2018 15:17:13 -0700 Subject: Use LinkedHashSet in propagateAnnotations (#855) Fixes #780 --- src/main/scala/firrtl/Compiler.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala') 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) -- cgit v1.2.3