Merge branch 'master' into c128target

This commit is contained in:
Irmen de Jong 2021-12-23 23:51:42 +01:00
commit a123c64f59

View File

@ -367,7 +367,7 @@ class StatementOptimizer(private val program: Program,
val targetIDt = assignment.target.inferType(program)
if(!targetIDt.isKnown)
throw FatalAstException("can't infer type of assignment target")
return noModifications
// optimize binary expressions a bit
val bexpr=assignment.value as? BinaryExpression