From: Sanjay Patel Date: Sun, 27 Mar 2016 20:44:35 +0000 (+0000) Subject: workaround for an IR variable named %. X-Git-Tag: llvmorg-3.9.0-rc1~10796 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1768117d1a4a30d8c4d79827f5abd26efc1bea39;p=platform%2Fupstream%2Fllvm.git workaround for an IR variable named %. (which SimplifyCFG can produce...) llvm-svn: 264543 --- 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))