@@ -736,6 +736,36 @@ def warn_fortify_source_size_mismatch : Warning<
736
736
"'%0' size argument is too large; destination buffer has size %1,"
737
737
" but size argument is %2">, InGroup<FortifySource>;
738
738
739
+ def err_ptrauth_disabled_target :
740
+ Error<"this target does not support pointer authentication">;
741
+ def err_ptrauth_disabled :
742
+ Error<"pointer authentication is disabled for the current target">;
743
+ def err_ptrauth_invalid_key :
744
+ Error<"%0 does not identify a valid pointer authentication key for "
745
+ "the current target">;
746
+ def err_ptrauth_value_bad_type :
747
+ Error<"%select{signed value|extra discriminator|blended pointer|blended "
748
+ "integer}0 must have %select{pointer|integer|pointer or integer}1 "
749
+ "type; type here is %2">;
750
+ def err_ptrauth_bad_constant_pointer :
751
+ Error<"argument to ptrauth_sign_constant must refer to a global variable "
752
+ "or function">;
753
+ def err_ptrauth_bad_constant_discriminator :
754
+ Error<"discriminator argument to ptrauth_sign_constant must be a constant "
755
+ "integer, the address of the global variable where the result "
756
+ "will be stored, or a blend of the two">;
757
+ def warn_ptrauth_sign_null_pointer :
758
+ Warning<"signing a null pointer will yield a non-null pointer">,
759
+ InGroup<PtrAuthNullPointers>;
760
+ def warn_ptrauth_auth_null_pointer :
761
+ Warning<"authenticating a null pointer will almost certainly trap">,
762
+ InGroup<PtrAuthNullPointers>;
763
+ def err_ptrauth_string_not_literal : Error<
764
+ "argument must be a string literal%select{| of char type}0">;
765
+ def err_ptrauth_type_disc_variably_modified : Error<
766
+ "cannot pass variably-modified type %0 to "
767
+ "'__builtin_ptrauth_type_discriminator'">;
768
+
739
769
/// main()
740
770
// static main() is not an error in C, just in C++.
741
771
def warn_static_main : Warning<"'main' should not be declared static">,
0 commit comments