From c7cb059c844910603945a74908b53601579580d4 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 26 Jul 2013 00:03:04 -0400 Subject: [PATCH] Fix alternative matches in insn/subst rule match --- loopy/context_matching.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loopy/context_matching.py b/loopy/context_matching.py index 9158e533f..27a93c816 100644 --- a/loopy/context_matching.py +++ b/loopy/context_matching.py @@ -83,7 +83,8 @@ def parse_id_match(id_matches): id_matches = id_matches.split(",") if len(id_matches) > 1: - return AlternativeMatch(parse_id_match(im) for im in id_matches) + return AlternativeMatch([ + parse_id_match(im) for im in id_matches]) if len(id_matches) == 0: return AllMatch() -- GitLab