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

fuse_instruction_streams_with_unique_ids: Accept generic iterables

parent e6f9f70f
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ THE SOFTWARE.
# {{{ fuse instruction streams
def fuse_instruction_streams_with_unique_ids(instructions_a, instructions_b):
new_instructions = instructions_a[:]
new_instructions = list(instructions_a)
from pytools import UniqueNameGenerator
insn_id_gen = UniqueNameGenerator(
set([insna.id for insna in new_instructions]))
......
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