diff options
| author | Jack Koenig | 2018-03-27 21:54:30 -0700 |
|---|---|---|
| committer | GitHub | 2018-03-27 21:54:30 -0700 |
| commit | cf0d971beda33a1802c384bd8d5eebb150d9d578 (patch) | |
| tree | 95d47d79d784289904fc0cb0c88b349617dc3a67 /src/main/scala/firrtl/passes/CheckWidths.scala | |
| parent | 65454f5ff1a370d66202a073e18cdcd40180f051 (diff) | |
Change throwInternalError to use a String instead of Option[String] (#777)
Diffstat (limited to 'src/main/scala/firrtl/passes/CheckWidths.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/CheckWidths.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/CheckWidths.scala b/src/main/scala/firrtl/passes/CheckWidths.scala index 7406f09a..7827c55e 100644 --- a/src/main/scala/firrtl/passes/CheckWidths.scala +++ b/src/main/scala/firrtl/passes/CheckWidths.scala @@ -50,7 +50,7 @@ object CheckWidths extends Pass { def hasWidth(tpe: Type): Boolean = tpe match { case GroundType(IntWidth(w)) => true case GroundType(_) => false - case _ => throwInternalError(Some(s"hasWidth - $tpe")) + case _ => throwInternalError(s"hasWidth - $tpe") } def check_width_t(info: Info, mname: String)(t: Type): Type = |
