Skip to content
Snippets Groups Projects
Commit 6f8fbdfe authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Fix removal of function parameters for lhs symbols that are not declared in the kernel

parent 55c98120
No related branches found
No related tags found
1 merge request!438Reduction Support
...@@ -62,7 +62,7 @@ class UndefinedSymbolsCollector: ...@@ -62,7 +62,7 @@ class UndefinedSymbolsCollector:
case PsAssignment(lhs, rhs): case PsAssignment(lhs, rhs):
undefined_vars = self(lhs) | self(rhs) undefined_vars = self(lhs) | self(rhs)
if isinstance(lhs, PsSymbolExpr): if isinstance(node, PsDeclaration) and isinstance(lhs, PsSymbolExpr):
undefined_vars.remove(lhs.symbol) undefined_vars.remove(lhs.symbol)
return undefined_vars return undefined_vars
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment