Skip to content
Snippets Groups Projects
Commit f65ebfd7 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

assignment_to_subst: complain if nothing matched

parent 64f43157
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,10 @@ def assignment_to_subst(kernel, lhs_name, extra_arguments=(), within=None,
# }}}
if not definition_insn_ids:
raise LoopyError("no assignments to variable '%s' found"
% lhs_name)
from loopy.context_matching import parse_stack_match
within = parse_stack_match(within)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment