From 0de3cfd44169a8feb47e2bb9a0aa44e72b31da95 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Wed, 18 Jun 2014 13:21:00 +0100
Subject: [PATCH] Fix user-supplied (unparsed) instructions

---
 loopy/kernel/creation.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/loopy/kernel/creation.py b/loopy/kernel/creation.py
index 6705c13ae..9c4de55cc 100644
--- a/loopy/kernel/creation.py
+++ b/loopy/kernel/creation.py
@@ -300,7 +300,7 @@ def parse_insn(insn):
 
 def parse_if_necessary(insn, defines):
     if isinstance(insn, InstructionBase):
-        yield insn
+        yield insn, []
         return
     elif not isinstance(insn, str):
         raise TypeError("Instructions must be either an Instruction "
-- 
GitLab