Skip to content

Commit 7eb8238

Browse files
authored
[TableGen] Handle Windows line endings in x86-fold-tables.td test (#112997)
The x86-fold-tables.td has been failing for me and [in CI](https://buildkite.com/llvm-project/github-pull-requests/builds/111277#0192a122-c5c9-4e4e-bc5b-7532fec99ae4) if Git happens to decide to check out the baseline file with Windows line endings. This fix for this is to add the `--strip-trailing-cr` option to diff to normalize the line endings before comparing them.
1 parent dcbf2c2 commit 7eb8238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/TableGen/x86-fold-tables.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// 2. cp <generated_file> x86-fold-tables.inc
55

66
// RUN: llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 %p/../../lib/Target/X86/X86.td -I %p/../../lib/Target/X86 -I %p/../../include -o %t
7-
// RUN: diff %p/x86-fold-tables.inc %t
7+
// RUN: diff --strip-trailing-cr %p/x86-fold-tables.inc %t

0 commit comments

Comments
 (0)