diff options
Diffstat (limited to 'llvm/utils/update_mir_test_checks.py')
-rwxr-xr-x | llvm/utils/update_mir_test_checks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/update_mir_test_checks.py b/llvm/utils/update_mir_test_checks.py index 3756af1b517..068c418b279 100755 --- a/llvm/utils/update_mir_test_checks.py +++ b/llvm/utils/update_mir_test_checks.py @@ -360,7 +360,7 @@ def update_test_file(llc, test, remove_common_prefixes=False, if m: state = 'ir function prefix' func_name = m.group('func') - if input_line.strip() == '---': + if input_line.rstrip('| \r\n') == '---': state = 'document' output_lines.append(input_line) elif state == 'document': |