File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1969,6 +1969,8 @@ class PrettyStackTraceFrontend : public llvm::PrettyStackTraceEntry {
1969
1969
auto effective = LangOpts.EffectiveLanguageVersion ;
1970
1970
if (effective != version::Version::getCurrentLanguageVersion ()) {
1971
1971
os << " Compiling with effective version " << effective;
1972
+ } else {
1973
+ os << " Compiling with the current language version" ;
1972
1974
}
1973
1975
os << " \n " ;
1974
1976
};
Original file line number Diff line number Diff line change 16
16
// CHECK-ALLOW: Program arguments: {{.*}} -experimental-allow-module-with-compiler-errors
17
17
// CHECK-ALLOW: Compiling with effective version
18
18
19
+ // RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -experimental-allow-module-with-compiler-errors -swift-version 5 %s 2>&1 | %FileCheck -check-prefix CHECK-CURRENT %s
20
+ // CHECK-CURRENT: Program arguments: {{.*}} -experimental-allow-module-with-compiler-errors
21
+ // CHECK-CURRENT: Compiling with the current language version
22
+
19
23
func anchor( ) { }
20
24
anchor ( )
21
25
You can’t perform that action at this time.
0 commit comments