diff options
| author | Adam Izraelevitz | 2016-04-06 11:16:01 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-04-26 11:56:49 -0700 |
| commit | 770d781f0862a06b46267c7cdf7e99e406ef4423 (patch) | |
| tree | bb0a9fb73b3bbb27600e5c7cd52cb58e5c2d0e1d /src | |
| parent | b2cd5135acd69cb45d88e69d27b50d37261c978d (diff) | |
Fixed bug in recursive check for whether BundleType contains flips.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/passes/Checks.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/passes/Checks.scala b/src/main/scala/firrtl/passes/Checks.scala index f62e4f86..76392982 100644 --- a/src/main/scala/firrtl/passes/Checks.scala +++ b/src/main/scala/firrtl/passes/Checks.scala @@ -96,7 +96,7 @@ object CheckHighForm extends Pass with LazyLogging { def hasFlip(t: Type): Boolean = { var has = false def findFlip(t: Type): Type = { - t match { + t map (findFlip) match { case t: BundleType => { for (f <- t.fields) { if (f.flip == REVERSE) has = true @@ -107,7 +107,6 @@ object CheckHighForm extends Pass with LazyLogging { } } findFlip(t) - t map (findFlip) has } |
