Skip to content
Snippets Groups Projects
Commit 911feb37 authored by Nick Curtis's avatar Nick Curtis
Browse files

initialize first entries on the if_stack to have the correct insn_predicates...

initialize first entries on the if_stack to have the correct insn_predicates in case it's immediately popped off
parent 6dc2bbeb
No related branches found
No related tags found
No related merge requests found
......@@ -792,6 +792,10 @@ def parse_instructions(instructions, defines):
| frozenset([predicate]))
insn_options_stack.append(options)
#add to the if_stack
if_options = options.copy()
if_options['insn_predicates'] = options["predicates"]
if_predicates_stack.append(options)
del options
del predicate
......@@ -825,7 +829,6 @@ def parse_instructions(instructions, defines):
else:
assert else_match is not None
if not last_if_predicates:
import pdb; pdb.set_trace()
raise LoopyError("'else' without 'if'/'elif' encountered")
additional_preds = frozenset()
......
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