]> granicus.if.org Git - llvm/commitdiff
Fix update_test_checks not to accidentally believe type names are variable names
authorDaniel Berlin <dberlin@dberlin.org>
Fri, 13 Jan 2017 23:54:15 +0000 (23:54 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Fri, 13 Jan 2017 23:54:15 +0000 (23:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291980 91177308-0d34-0410-b5e6-96231b3b80d8

utils/update_test_checks.py

index 92ab5ef6599cc209f924c44657110c92007e3bc1..da26f3c513ccaf016f077500b92e38dfd6c792de 100755 (executable)
@@ -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.