Skip to content

Commit

Permalink
Handle _ when checking for uninitialized variables (#9771)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Nov 26, 2022
1 parent d03a6d3 commit 5fb760e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMCompiler/Compiler/NFFrontEnd/NFFunction.mo
Expand Up @@ -2709,6 +2709,7 @@ protected
algorithm
() := match assignedExp
case Expression.CREF()
guard ComponentRef.isCref(assignedExp.cref)
algorithm
node := ComponentRef.node(ComponentRef.last(assignedExp.cref));
(_, index) := Vector.find(unassigned, function InstNode.refEqual(node1 = node));
Expand Down Expand Up @@ -2790,6 +2791,7 @@ protected
algorithm
() := match exp
case Expression.CREF()
guard ComponentRef.isCref(exp.cref)
algorithm
node := ComponentRef.node(ComponentRef.last(exp.cref));
(_, index) := Vector.find(unassigned, function InstNode.refEqual(node1 = node));
Expand Down

0 comments on commit 5fb760e

Please sign in to comment.