aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/InferWidths.scala
diff options
context:
space:
mode:
authorAditya Naik2024-05-29 16:57:13 -0700
committerAditya Naik2024-05-29 16:57:13 -0700
commit165804ee58cb18443042b9655328278434ddedf4 (patch)
tree4e167eff9e7b3ec09d73dbd9feaa6f9964cd8a68 /src/main/scala/firrtl/passes/InferWidths.scala
parent57b8a395ee8d5fdabb2deed3db7d0c644f0a7eed (diff)
Add Scala3 support
Diffstat (limited to 'src/main/scala/firrtl/passes/InferWidths.scala')
-rw-r--r--src/main/scala/firrtl/passes/InferWidths.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/passes/InferWidths.scala b/src/main/scala/firrtl/passes/InferWidths.scala
index d0677fad..b3ef569a 100644
--- a/src/main/scala/firrtl/passes/InferWidths.scala
+++ b/src/main/scala/firrtl/passes/InferWidths.scala
@@ -31,7 +31,7 @@ case class WidthGeqConstraintAnnotation(loc: ReferenceTarget, exp: ReferenceTarg
"is not supported by WidthGeqConstraintAnnotation\n" + target.prettyPrint()
)
}
- }
+ }: @unchecked
(newLoc, newExp) match {
case (Some(l: ReferenceTarget), Some(e: ReferenceTarget)) => Seq(WidthGeqConstraintAnnotation(l, e))
@@ -265,7 +265,7 @@ class InferWidths extends Transform with ResolvedAnnotationPaths with Dependency
}
leafType
- }
+ }: @unchecked
//get_constraints_t(locType, expType)
addTypeConstraints(anno.loc, anno.exp)(locType, expType)