Skip to content
Snippets Groups Projects
Commit fff5a079 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 1a1c23b5
Branches
1 merge request!438Reduction Support
This commit is part of merge request !438. Comments created here will be created in the context of that merge request.
......@@ -62,7 +62,7 @@ class UndefinedSymbolsCollector:
case PsAssignment(lhs, rhs):
undefined_vars = self(lhs) | self(rhs)
if isinstance(lhs, PsSymbolExpr):
if isinstance(node, PsDeclaration) and isinstance(lhs, PsSymbolExpr):
undefined_vars.remove(lhs.symbol)
return undefined_vars
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment