allow simple unbased-unsized RHSs to sign extend

This commit is contained in:
Zachary Snow 2021-07-26 22:00:00 -04:00
parent 17b01b1683
commit 93ba497c12
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ sizedLiteralFor expr bit =
where size = DimsFn FnBits $ Right expr
convertAsgn :: (LHS, Expr) -> (LHS, Expr)
convertAsgn (lhs, UU bit) =
(lhs, literalFor bit)
convertAsgn (lhs, expr) =
(lhs, convertExpr context expr)
where context = ContextDetermined $ lhsToExpr lhs