summaryrefslogtreecommitdiff
path: root/utils/update_test_checks.py
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-03-27 20:44:35 +0000
committerSanjay Patel <spatel@rotateright.com>2016-03-27 20:44:35 +0000
commit044daf437927850f7b557aad7e9f13e098f958e3 (patch)
treee37e327aec79a594f0420ebefc0730e202854550 /utils/update_test_checks.py
parenta21dabc498c6b162c296457dac8ec44fda163368 (diff)
workaround for an IR variable named %.
(which SimplifyCFG can produce...) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/update_test_checks.py')
-rwxr-xr-xutils/update_test_checks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py
index e36af398318..19b27859a56 100755
--- a/utils/update_test_checks.py
+++ b/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))