From 4e331dcefb1daa2535f579b6eafdecfe22ebd15c Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Thu, 11 Jul 2019 01:14:30 +0000 Subject: [PATCH] [NFC] Adjust "invalid.ll.bc" tests to check for AttrKind #255 not #63 We are about to add enum attributes with AttrKind numbers >= 63. This means we cannot use AttrKind #63 to test for an invalid attribute number in the RAW format anymore. This patch changes the number of an invalid attribute to #255. There is no change to the character of the tests. Differential Revision: https://reviews.llvm.org/D64531 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365722 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bindings/llvm-c/Inputs/invalid.ll.bc | Bin 688 -> 688 bytes test/Bindings/llvm-c/invalid-bitcode.test | 4 ++-- test/Bitcode/invalid.ll | 2 +- test/Bitcode/invalid.ll.bc | Bin 688 -> 688 bytes test/LTO/X86/Inputs/invalid.ll.bc | Bin 688 -> 688 bytes test/LTO/X86/invalid.ll | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Bindings/llvm-c/Inputs/invalid.ll.bc b/test/Bindings/llvm-c/Inputs/invalid.ll.bc index c6753320ae3d3f8374fafcb893472c8ebd857e8a..6d5a0bfd2065996564c81fe879c06f6e6f22560c 100644 GIT binary patch delta 12 TcmdnMx`B1VL`M6KljN8H9smR{ delta 12 TcmdnMx`B1VL`MFNljN8H9S{Tm diff --git a/test/Bindings/llvm-c/invalid-bitcode.test b/test/Bindings/llvm-c/invalid-bitcode.test index c6aaaeb71fe..cd81b584974 100644 --- a/test/Bindings/llvm-c/invalid-bitcode.test +++ b/test/Bindings/llvm-c/invalid-bitcode.test @@ -1,13 +1,13 @@ ; RUN: not llvm-c-test --module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s ; RUN: not llvm-c-test --lazy-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s -CHECK: Error parsing bitcode: Unknown attribute kind (63) +CHECK: Error parsing bitcode: Unknown attribute kind (255) ; RUN: not llvm-c-test --new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s ; RUN: not llvm-c-test --lazy-new-module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=NEW %s -NEW: Error with new bitcode parser: Unknown attribute kind (63) +NEW: Error with new bitcode parser: Unknown attribute kind (255) ; RUN: llvm-c-test --test-diagnostic-handler < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck --check-prefix=DIAGNOSTIC %s diff --git a/test/Bitcode/invalid.ll b/test/Bitcode/invalid.ll index 4bbb4570f7e..99861c84560 100644 --- a/test/Bitcode/invalid.ll +++ b/test/Bitcode/invalid.ll @@ -1,6 +1,6 @@ ; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s -; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: error: Unknown attribute kind (63) +; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: error: Unknown attribute kind (255) ; invalid.ll.bc has an invalid attribute number. ; The test checks that LLVM reports the error and doesn't access freed memory diff --git a/test/Bitcode/invalid.ll.bc b/test/Bitcode/invalid.ll.bc index a2b611e6c516c123480c4f70db6d18d09f6c5c84..573988ee804fd7ecf441ddb2fd8ae15b62c78791 100644 GIT binary patch delta 12 TcmdnMx`B1VL`M6KljN8H9smR{ delta 12 TcmdnMx`B1VL`MFNljN8H9S{Tm diff --git a/test/LTO/X86/Inputs/invalid.ll.bc b/test/LTO/X86/Inputs/invalid.ll.bc index c6753320ae3d3f8374fafcb893472c8ebd857e8a..6d5a0bfd2065996564c81fe879c06f6e6f22560c 100644 GIT binary patch delta 12 TcmdnMx`B1VL`M6KljN8H9smR{ delta 12 TcmdnMx`B1VL`MFNljN8H9S{Tm diff --git a/test/LTO/X86/invalid.ll b/test/LTO/X86/invalid.ll index cc3127be362..f468647e874 100644 --- a/test/LTO/X86/invalid.ll +++ b/test/LTO/X86/invalid.ll @@ -1,4 +1,4 @@ ; RUN: not llvm-lto %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s -; CHECK: llvm-lto{{.*}}: error loading file '{{.*}}/Inputs/invalid.ll.bc': Unknown attribute kind (63) +; CHECK: llvm-lto{{.*}}: error loading file '{{.*}}/Inputs/invalid.ll.bc': Unknown attribute kind (255)