mirror of
https://github.com/irmen/prog8.git
synced 2025-07-24 20:24:09 +00:00
no compiler optimizer crash on certain missing symbol
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user