From 4a733e82486550afad2a7e1bd8a21629cdc8327a Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Thu, 18 Aug 2016 10:54:12 -0700 Subject: Remove redundant test and errors.append() in check_types_e(). (#243) --- src/main/scala/firrtl/passes/Checks.scala | 1 - 1 file changed, 1 deletion(-) (limited to 'src/main') 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) => { -- cgit v1.2.3