Skip to content

Commit

Permalink
Fix update_test_checks.py bug that incorrectly truncates IR body.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D26619

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290529 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bryant committed Dec 25, 2016
1 parent 1e97630 commit efdef29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/update_test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
flags=(re.M | re.S))
OPT_FUNCTION_RE = re.compile(
r'^\s*define\s+(?:internal\s+)?[^@]*@(?P<func>[\w-]+?)\s*\('
r'(\s+)?[^{]*\{\n(?P<body>.*?)\}',
r'(\s+)?[^{]*\{\n(?P<body>.*?)^\}$',
flags=(re.M | re.S))
CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)')
CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
Expand Down

0 comments on commit efdef29

Please sign in to comment.