[PATCH] D26619: `update_test_checks.py` incorrectly truncates IR body

bryant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 25 15:57:36 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290529: Fix `update_test_checks.py` bug that incorrectly truncates IR body. (authored by bryant).

Changed prior to commit:
  https://reviews.llvm.org/D26619?vs=77841&id=82486#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26619

Files:
  llvm/trunk/utils/update_test_checks.py


Index: llvm/trunk/utils/update_test_checks.py
===================================================================
--- llvm/trunk/utils/update_test_checks.py
+++ llvm/trunk/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.82486.patch
Type: text/x-patch
Size: 575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161225/446b0724/attachment.bin>


More information about the llvm-commits mailing list