mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a SourceKitCrash in the VTableSpecializer pass
Replace the assert-check if a vtable is available with a regular error message. This cannot occur in regular builds - only if built with embedded swift and without wmo. The command line compiler prevents this combination, but it can happen in SourceKit. rdar://130167087
This commit is contained in:
@@ -374,6 +374,8 @@ ERROR(global_must_be_compile_time_const,none,
|
||||
"global variable must be a compile-time constant", ())
|
||||
ERROR(non_final_generic_class_function,none,
|
||||
"classes cannot have non-final generic fuctions in embedded Swift", ())
|
||||
ERROR(cannot_specialize_class,none,
|
||||
"cannot specialize %0 because class definition is not available (make sure to build with -wmo)", (Type))
|
||||
ERROR(embedded_swift_existential_type,none,
|
||||
"cannot use a value of protocol type %0 in embedded Swift", (Type))
|
||||
ERROR(embedded_swift_existential,none,
|
||||
|
||||
Reference in New Issue
Block a user