3 Commits

Author SHA1 Message Date
Oliver Hunt
8be1325cb1
[clang][test] Add function type discrimination tests to static destructor tests (#99604)
I accidentally did not include tests for the setting up runtime calls when compiling with -fptrauth-function-pointer-type-discrimination
2024-07-23 14:18:53 -07:00
Daniil Kovalev
a1d77caaab
[test][PAC][clang] Add missing tests against linux triples (#99482)
Enhance tests introduced in #94056, #96992, #98276 and #98847 by adding
RUN and CHECK lines against linux triples.
2024-07-19 09:47:47 +03:00
Oliver Hunt
07f8a65d09
[clang] Ensure pointers passed to runtime support functions are correctly signed (#98276)
Updates codegen for global destructors and raising exceptions to ensure
that the function pointers being passed are signed using the correct
schema.

Notably this requires that CodeGenFunction::createAtExitStub to return
an opaque Constant* rather than a Function* as the value being emitted
is no longer necessarily a raw function pointer depending on the
configured ABI.

Co-Authored-By: Akira Hatanaka <ahatanaka@apple.com>
Co-Authored-By: John McCall <rjmccall@apple.com>
2024-07-17 15:22:53 -07:00