[llvm] r291980 - Fix update_test_checks not to accidentally believe type names are variable names
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 15:54:15 PST 2017
Author: dannyb
Date: Fri Jan 13 17:54:15 2017
New Revision: 291980
URL: http://llvm.org/viewvc/llvm-project?rev=291980&view=rev
Log:
Fix update_test_checks not to accidentally believe type names are variable names
Modified:
llvm/trunk/utils/update_test_checks.py
Modified: llvm/trunk/utils/update_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_test_checks.py?rev=291980&r1=291979&r2=291980&view=diff
==============================================================================
--- llvm/trunk/utils/update_test_checks.py (original)
+++ llvm/trunk/utils/update_test_checks.py Fri Jan 13 17:54:15 2017
@@ -70,7 +70,7 @@ CHECK_PREFIX_RE = re.compile('--check-pr
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.
More information about the llvm-commits
mailing list