6 Commits

Author SHA1 Message Date
Akira Hatanaka
7e9c233529
Run test with triple arm64-apple-ios (#102343) 2024-08-07 16:48:29 -07:00
Akira Hatanaka
666e3326fe
[PAC] Define __builtin_ptrauth_type_discriminator (#100204)
The builtin computes the discriminator for a type, which can be used to
sign/authenticate function pointers and member function pointers.

If the type passed to the builtin is a C++ member function pointer type,
the result is the discriminator used to signed member function pointers
of that type. If the type is a function, function pointer, or function
reference type, the result is the discriminator used to sign functions
of that type. It is ill-formed to use this builtin with any other type.

A call to this function is an integer constant expression.

Co-Authored-By: John McCall rjmccall@apple.com
2024-07-24 02:04:37 -07:00
Richard Smith
39eca9b95a Fix mangling for dependent "type { expr-list }" expressions, and add mangling for designated initializers matching recent cxx-abi-dev discussion.
llvm-svn: 311612
2017-08-23 22:12:08 +00:00
Daniel Jasper
a61e212a43 Prevent test from accessing files.
llvm-svn: 231907
2015-03-11 06:01:01 +00:00
Richard Smith
67375c3bbc Fix test to specify an Itanium triple.
llvm-svn: 231900
2015-03-11 01:09:01 +00:00
Richard Smith
ed1cb88c8a For PR22870: produce an error rather than asserting if a designated initializer appears in a signature.
llvm-svn: 231892
2015-03-11 00:12:17 +00:00