fix and optimize storing A into pointervar

This commit is contained in:
Irmen de Jong
2021-12-04 04:43:58 +01:00
parent b867d8f731
commit e545ea9504
6 changed files with 107 additions and 74 deletions

View File

@@ -73,6 +73,7 @@ X = BinExpr X = LeftExpr
// )
}
// TODO breaks imageviewer EHB palette
if(binExpr.right.isSimple) {
val firstAssign = Assignment(assignment.target.copy(), binExpr.left, binExpr.left.position)
val targetExpr = assignment.target.toExpression()