[PATCH] D26619: `update_test_checks.py` incorrectly truncates IR body
bryant via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 11:06:07 PST 2016
bryant updated this revision to Diff 77841.
bryant added a comment.
Tighten end-of-function match to closing curly brace on single line.
Repository:
rL LLVM
https://reviews.llvm.org/D26619
Files:
utils/update_test_checks.py
Index: utils/update_test_checks.py
===================================================================
--- utils/update_test_checks.py
+++ utils/update_test_checks.py
@@ -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)?:')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26619.77841.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161114/1febd213/attachment.bin>
More information about the llvm-commits
mailing list