diff options
Diffstat (limited to 'src/main/scala/firrtl/passes/RemoveValidIf.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/RemoveValidIf.scala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/scala/firrtl/passes/RemoveValidIf.scala b/src/main/scala/firrtl/passes/RemoveValidIf.scala index bc8e8c1b..03214f83 100644 --- a/src/main/scala/firrtl/passes/RemoveValidIf.scala +++ b/src/main/scala/firrtl/passes/RemoveValidIf.scala @@ -21,12 +21,8 @@ object RemoveValidIf extends Pass { * @note Accepts [[firrtl.ir.Type Type]] but dyanmically expects [[firrtl.ir.GroundType GroundType]] */ def getGroundZero(tpe: Type): Expression = tpe match { - case _: UIntType => UIntZero - case _: SIntType => SIntZero - case ClockType => ClockZero - case _: FixedType => FixedZero - case AsyncResetType => AsyncZero - case other => throwInternalError(s"Unexpected type $other") + case g: GroundType => Utils.getGroundZero(g) + case other => throwInternalError(s"Unexpected type $other") } override def prerequisites = firrtl.stage.Forms.LowForm |
