mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
[llvm-mca][UpdateTestChecks] Prevent an IndexError being raised when given empty input
llvm-svn: 333894
This commit is contained in:
parent
26a43d8b5a
commit
75a3de70a1
@ -409,7 +409,7 @@ def _write_output(test_path, input_lines, prefix_list, block_infos, # noqa
|
||||
continue
|
||||
|
||||
# Add a blank line before the new checks if required.
|
||||
if output_lines[-1]:
|
||||
if len(output_lines) > 0 and output_lines[-1]:
|
||||
output_lines.append('')
|
||||
|
||||
output_check_lines = []
|
||||
|
Loading…
Reference in New Issue
Block a user