Fix `update_test_checks.py` bug that incorrectly truncates IR body.

Differential Revision: https://reviews.llvm.org/D26619

llvm-svn: 290529
This commit is contained in:
Bryant Wong 2016-12-25 23:46:55 +00:00
parent cb22b89f3f
commit c6b46d80c8
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ LLC_FUNCTION_RE = re.compile(
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)?:')