aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorSebastian Neubauer <Sebastian.Neubauer@amd.com>2022-02-14 12:07:34 +0100
committerSebastian Neubauer <Sebastian.Neubauer@amd.com>2022-03-03 17:27:14 +0100
commit473efae3a18fd6dcbf00d95de3fa22a7294f31c0 (patch)
treef854e0e5fb8432137d06c2df8a0519b840db7bf0 /llvm/utils/UpdateTestChecks/common.py
parent41a62cc0b4f5821df85e7b23ae53bc66d1d046c3 (diff)
downloadllvm-473efae3a18fd6dcbf00d95de3fa22a7294f31c0.zip
llvm-473efae3a18fd6dcbf00d95de3fa22a7294f31c0.tar.gz
llvm-473efae3a18fd6dcbf00d95de3fa22a7294f31c0.tar.bz2
[UpdateTestChecks] Don't skip first line with --filter
body_start was never used, resulting in the first filtered line to be skipped. Fixes the --filter option introduced in D117694. Differential Revision: https://reviews.llvm.org/D119704
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 3361f68..c073f25 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -853,7 +853,7 @@ def add_checks(output_lines, comment_marker, prefix_list, func_dict, func_name,
body_start = 0
else:
output_lines.append('%s %s: %s' % (comment_marker, checkprefix, func_body[0]))
- for func_line in func_body[1:]:
+ for func_line in func_body[body_start:]:
if func_line.strip() == '':
output_lines.append('%s %s-EMPTY:' % (comment_marker, checkprefix))
else: