aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Lawson2016-08-18 10:54:12 -0700
committerAdam Izraelevitz2016-08-18 10:54:12 -0700
commit4a733e82486550afad2a7e1bd8a21629cdc8327a (patch)
tree19030e2d63d63d50db1bb61f4bc1078e43489e8b /src
parent5db4abebb7ceb5939a9efca158d78e3dc0e32c44 (diff)
Remove redundant test and errors.append() in check_types_e(). (#243)
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/firrtl/passes/Checks.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/Checks.scala b/src/main/scala/firrtl/passes/Checks.scala
index 8c94d737..9ee20c0a 100644
--- a/src/main/scala/firrtl/passes/Checks.scala
+++ b/src/main/scala/firrtl/passes/Checks.scala
@@ -447,7 +447,6 @@ object CheckTypes extends Pass with LazyLogging {
case (e:Mux) => {
if (wt(tpe(e.tval)) != wt(tpe(e.fval))) errors.append(new MuxSameType(info))
if (!passive(tpe(e))) errors.append(new MuxPassiveTypes(info))
- if (!passive(tpe(e))) errors.append(new MuxPassiveTypes(info))
if (!(tpe(e.cond).typeof[UIntType])) errors.append(new MuxCondUInt(info))
}
case (e:ValidIf) => {