Skip to content

Commit 895f1d9

Browse files
committed
Make formatter happy
1 parent 2804b2c commit 895f1d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llvm/utils/UpdateTestChecks/common.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,9 +2280,12 @@ def add_checks(
22802280
# For IR output, change all defs to FileCheck variables, so we're immune
22812281
# to variable naming fashions.
22822282
else:
2283-
blank_line_indices = {
2284-
i for i, line in enumerate(func_body) if line.strip() == ""
2285-
} if ginfo.get_version() >= 7 else set()
2283+
if ginfo.get_version() >= 7:
2284+
# Record the indices of blank lines in the function body preemptively.
2285+
blank_line_indices = { i for i, line in enumerate(func_body) if line.strip() == "" }
2286+
else:
2287+
blank_line_indices = set()
2288+
22862289
func_body = generalize_check_lines(
22872290
func_body,
22882291
ginfo,

0 commit comments

Comments
 (0)