diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index 5b4449702cc..92ab5ef6599 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)?:')