From 1768117d1a4a30d8c4d79827f5abd26efc1bea39 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sun, 27 Mar 2016 20:44:35 +0000 Subject: [PATCH] workaround for an IR variable named %. (which SimplifyCFG can produce...) llvm-svn: 264543 --- llvm/utils/update_test_checks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py index e36af39..19b2785 100755 --- a/llvm/utils/update_test_checks.py +++ b/llvm/utils/update_test_checks.py @@ -136,6 +136,8 @@ def genericize_check_lines(lines): lines_with_def = [] vars_seen = [] for line in lines: + # An IR variable named '%.' matches the FileCheck regex string. + line = line.replace('%.', '%dot') m = IR_VALUE_DEF_RE.match(line) if m: vars_seen.append(m.group(1)) -- 2.7.4