From: Daniel Berlin Date: Fri, 13 Jan 2017 23:54:15 +0000 (+0000) Subject: Fix update_test_checks not to accidentally believe type names are variable names X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9567625d9c10ec6209a93327dbd6796de1fca70b;p=llvm Fix update_test_checks not to accidentally believe type names are variable names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index 92ab5ef6599..da26f3c513c 100755 --- a/utils/update_test_checks.py +++ b/utils/update_test_checks.py @@ -70,7 +70,7 @@ CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)') CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:') # Match things that look at identifiers, but only if they are followed by # spaces, commas, paren, or end of the string -IR_VALUE_RE = re.compile(r'(\s+)%(.+?)([,\s\(\)]|\Z)') +IR_VALUE_RE = re.compile(r'(\s+)%(\w+?)([,\s\(\)]|\Z)') # Invoke the tool that is being tested.