workaround for an IR variable named %.
authorSanjay Patel <spatel@rotateright.com>
Sun, 27 Mar 2016 20:44:35 +0000 (20:44 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 27 Mar 2016 20:44:35 +0000 (20:44 +0000)
(which SimplifyCFG can produce...)

llvm-svn: 264543

llvm/utils/update_test_checks.py

index e36af39..19b2785 100755 (executable)
@@ -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))