diff options
| author | albertchen-sifive | 2018-08-08 15:17:13 -0700 |
|---|---|---|
| committer | Jack Koenig | 2018-08-08 15:17:13 -0700 |
| commit | 0ec4d84349a69b1c62a17d70e369abb91a35ce51 (patch) | |
| tree | 72a7245912aed87bdc32390b9b31aad157e5a999 /src/main | |
| parent | 0a2e2c2e4a97fb8d14e7259f779d8398e243e889 (diff) | |
Use LinkedHashSet in propagateAnnotations (#855)
Fixes #780
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/firrtl/Compiler.scala | 4 |
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) |
