summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1768117d1a4a30d8c4d79827f5abd26efc1bea39 (patch)
treedb0e46b6c6927f7ad26da5c601cbdefc93521c63 /llvm/utils/update_test_checks.py
parentd859271d5d7c8b9f105a2163a8272f9072aa50b6 (diff)
downloadbcm5719-llvm-1768117d1a4a30d8c4d79827f5abd26efc1bea39.tar.gz
bcm5719-llvm-1768117d1a4a30d8c4d79827f5abd26efc1bea39.zip
workaround for an IR variable named %.
(which SimplifyCFG can produce...) llvm-svn: 264543
Diffstat (limited to 'llvm/utils/update_test_checks.py')
-rwxr-xr-xllvm/utils/update_test_checks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py
index e36af398318..19b27859a56 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))
OpenPOWER on IntegriCloud