From 530bec8750b786f75fe716500ef491618cc0490c Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sun, 23 Oct 2011 22:40:46 -0400
Subject: [PATCH] Fix check_for_inactive_iname_access.

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

diff --git a/loopy/check.py b/loopy/check.py
index 356a238bc..d2db96700 100644
--- a/loopy/check.py
+++ b/loopy/check.py
@@ -60,7 +60,7 @@ def check_for_inactive_iname_access(kernel):
     depmap = DependencyMapper()
 
     for insn in kernel.instructions:
-        expression_indices = depmap(insn.assignee.index)
+        expression_indices = depmap(insn.expression)
         expression_inames = expression_indices & kernel.all_inames()
 
         if not expression_inames <= insn.all_inames():
-- 
GitLab