@@ -59,10 +59,19 @@ ERROR(temporary_allocation_alignment_not_positive,none,
59
59
ERROR(temporary_allocation_alignment_not_power_of_2,none,
60
60
" alignment value must be a power of two" , ())
61
61
62
- ERROR(foreign_reference_types_unsupported,none,
63
- " attempt to use a foreign reference type in a generic context. "
64
- " Foreign reference types are currently not supported. Using foreign "
65
- " reference types in a generic context is not yet implemented." , ())
62
+ ERROR(foreign_reference_types_cannot_find_retain,none,
63
+ " cannot find retain function '%0'." , (StringRef))
64
+
65
+ ERROR(foreign_reference_types_cannot_find_release,none,
66
+ " cannot find release function '%0'." , (StringRef))
67
+
68
+ ERROR(foreign_reference_types_invalid_retain,none,
69
+ " specified retain function '%0' is invalid. Retain must have exactly one "
70
+ " argument of type '%1'" , (StringRef, StringRef))
71
+
72
+ ERROR(foreign_reference_types_invalid_release,none,
73
+ " specified release function '%0' is invalid. Release must have exactly "
74
+ " one argument of type '%1'" , (StringRef, StringRef))
66
75
67
76
#define UNDEFINE_DIAGNOSTIC_MACROS
68
77
#include " DefineDiagnosticMacros.h"
0 commit comments