Skip to content
Snippets Groups Projects
Commit b0dfad44 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix InstructionBlock when one removes all instructions from an if branch

parent defef06a
No related branches found
No related tags found
2 merge requests!13Infrasructure patch 1,!12More improvements to Infrastructure
...@@ -98,7 +98,7 @@ class InstructionBlock: ...@@ -98,7 +98,7 @@ class InstructionBlock:
result_str += str(op) + "\n" result_str += str(op) + "\n"
result_str += "}\n" result_str += "}\n"
else: else:
assert len(val) > 0 if len(val) > 0:
result_str += "if (rank == %d) {\n" % int(key) result_str += "if (rank == %d) {\n" % int(key)
for op in val: for op in val:
result_str += str(op) + "\n" result_str += str(op) + "\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment