From 97e1e501392af276aba10f54d8c498de75924b7d Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Wed, 9 Jan 2013 19:25:21 +0100 Subject: [PATCH] Match compiler: Workaround broken code generation for "!!foo" patterns This is just meant for the upcoming release. --- tools/matchcompiler.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 5a3b31dbd..4bb28b9bf 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -339,6 +339,12 @@ class MatchCompiler: break # Non-const pattern - bailout pattern = res.group(1) + + # TODO: We currently generate incorrect code for "!!" patterns + # skip them for now until this is fixed + if pattern.find("!!") != -1: + break + line = self._replaceSpecificTokenMatch(is_simplematch, line, pos1, end_pos, pattern, tok, varId) return line