diff options
| author | Jack Koenig | 2018-12-06 15:23:08 -0800 |
|---|---|---|
| committer | GitHub | 2018-12-06 15:23:08 -0800 |
| commit | 50ba95fe05cc348496425733554be5fc7d797de1 (patch) | |
| tree | 447b6cb3d10c0d7f2d02eacd4a5628e784ec1302 /src/main | |
| parent | 9787e6a877375008645481f39388728436c85829 (diff) | |
Fix bug in dedup where lots of annotations could prevent dedup (#958)
Iterating on a HashSet could cause identical modules (including
annotations) to not dedup
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/firrtl/transforms/Dedup.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/transforms/Dedup.scala b/src/main/scala/firrtl/transforms/Dedup.scala index a33eeca6..56ea7cf8 100644 --- a/src/main/scala/firrtl/transforms/Dedup.scala +++ b/src/main/scala/firrtl/transforms/Dedup.scala @@ -335,7 +335,7 @@ object DedupModules { // Build tag val builder = new mutable.ArrayBuffer[Any]() agnosticModule.ports.foreach { builder ++= _.serialize } - builder ++= agnosticAnnos + builder += agnosticAnnos agnosticModule match { case Module(i, n, ps, b) => builder ++= fastSerializedHash(b).toString()//.serialize |
