From cf0d971beda33a1802c384bd8d5eebb150d9d578 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Tue, 27 Mar 2018 21:54:30 -0700 Subject: Change throwInternalError to use a String instead of Option[String] (#777) --- src/main/scala/firrtl/passes/ConvertFixedToSInt.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala/firrtl/passes/ConvertFixedToSInt.scala') diff --git a/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala b/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala index b52dacb7..4004b8d6 100644 --- a/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala +++ b/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala @@ -19,7 +19,7 @@ object ConvertFixedToSInt extends Pass { } else if (point - p < 0) { DoPrim(Shr, Seq(e), Seq(p - point), UnknownType) } else e - case FixedType(w, p) => throwInternalError(Some(s"alignArg: shouldn't be here - $e")) + case FixedType(w, p) => throwInternalError(s"alignArg: shouldn't be here - $e") case _ => e } def calcPoint(es: Seq[Expression]): BigInt = @@ -29,7 +29,7 @@ object ConvertFixedToSInt extends Pass { }).reduce(max(_, _)) def toSIntType(t: Type): Type = t match { case FixedType(IntWidth(w), IntWidth(p)) => SIntType(IntWidth(w)) - case FixedType(w, p) => throwInternalError(Some(s"toSIntType: shouldn't be here - $t")) + case FixedType(w, p) => throwInternalError(s"toSIntType: shouldn't be here - $t") case _ => t map toSIntType } def run(c: Circuit): Circuit = { -- cgit v1.2.3