aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
diff options
context:
space:
mode:
authorJack Koenig2018-03-27 21:54:30 -0700
committerGitHub2018-03-27 21:54:30 -0700
commitcf0d971beda33a1802c384bd8d5eebb150d9d578 (patch)
tree95d47d79d784289904fc0cb0c88b349617dc3a67 /src/main/scala/firrtl/passes/ConvertFixedToSInt.scala
parent65454f5ff1a370d66202a073e18cdcd40180f051 (diff)
Change throwInternalError to use a String instead of Option[String] (#777)
Diffstat (limited to 'src/main/scala/firrtl/passes/ConvertFixedToSInt.scala')
-rw-r--r--src/main/scala/firrtl/passes/ConvertFixedToSInt.scala4
1 files changed, 2 insertions, 2 deletions
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 = {