From efdef297337269bcc11f124fee12585be85b2148 Mon Sep 17 00:00:00 2001 From: Bryant Wong Date: Sun, 25 Dec 2016 23:46:55 +0000 Subject: [PATCH] Fix `update_test_checks.py` bug that incorrectly truncates IR body. Differential Revision: https://reviews.llvm.org/D26619 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290529 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/update_test_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index c084debbe98..7adf3e2661b 100755 --- a/utils/update_test_checks.py +++ b/utils/update_test_checks.py @@ -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[\w-]+?)\s*\(' - r'(\s+)?[^{]*\{\n(?P.*?)\}', + r'(\s+)?[^{]*\{\n(?P.*?)^\}$', flags=(re.M | re.S)) CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)') CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')