File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
test/Serialization/Recovery Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,8 @@ void ModuleFileSharedCore::fatal(llvm::Error error) const {
564
564
llvm::raw_svector_ostream out (errorStr);
565
565
566
566
out << " *** DESERIALIZATION FAILURE ***\n " ;
567
+ out << " *** If any module named here was modified in the SDK, please delete the ***\n " ;
568
+ out << " *** swiftmodule files from the root and keep only swiftinterface files. ***\n " ;
567
569
outputDiagnosticInfo (out);
568
570
out << " \n " ;
569
571
if (error) {
Original file line number Diff line number Diff line change @@ -17,5 +17,7 @@ public class Sub: Base {
17
17
// CHECK-CRASH-4_2: Compiling with effective version 4.2
18
18
// CHECK-CRASH: While loading members for 'Sub' (in module 'Lib')
19
19
// CHECK-CRASH-LABEL: *** DESERIALIZATION FAILURE ***
20
+ // CHECK-CRASH-LABEL: *** If any module named here was modified in the SDK, please delete the ***
21
+ // CHECK-CRASH-LABEL: *** swiftmodule files from the root and keep only swiftinterface files. ***
20
22
// CHECK-CRASH: module 'Lib' with full misc version {{.*}}4.1.50
21
23
// CHECK-CRASH: could not find 'disappearingMethod()' in parent class
Original file line number Diff line number Diff line change 23
23
24
24
// RUN: cat %t/normal_stderr | %FileCheck %s -check-prefixes=NORMALFAILURE
25
25
// NORMALFAILURE-LABEL: *** DESERIALIZATION FAILURE ***
26
+ // NORMALFAILURE-LABEL: *** If any module named here was modified in the SDK, please delete the ***
27
+ // NORMALFAILURE-LABEL: *** swiftmodule files from the root and keep only swiftinterface files. ***
26
28
// NORMALFAILURE-NEXT: module 'Client' with full misc version {{.*}}'
27
29
// NORMALFAILURE-NEXT: Could not deserialize type for 'foo()'
28
30
// NORMALFAILURE-NEXT: Caused by: top-level value not found
33
35
34
36
// RUN: cat %t/error_stderr | %FileCheck %s -check-prefixes=ALLOWFAILURE
35
37
// ALLOWFAILURE-LABEL: *** DESERIALIZATION FAILURE ***
38
+ // ALLOWFAILURE-LABEL: *** If any module named here was modified in the SDK, please delete the ***
39
+ // ALLOWFAILURE-LABEL: *** swiftmodule files from the root and keep only swiftinterface files. ***
36
40
// ALLOWFAILURE-NEXT: module 'Client' with full misc version {{.*}}' (built with -experimental-allow-module-with-compiler-errors)
37
41
// ALLOWFAILURE-NEXT: Could not deserialize type for 'foo()'
38
42
// ALLOWFAILURE-NEXT: Caused by: top-level value not found
You can’t perform that action at this time.
0 commit comments