[compiler-rt][test] fix zero_page_pc on arm64e
authorEmily Shi <code@emi.sh>
Thu, 24 Jun 2021 01:11:51 +0000 (18:11 -0700)
committerEmily Shi <code@emi.sh>
Thu, 24 Jun 2021 20:40:12 +0000 (13:40 -0700)
commitf26adaa28d55a174c7ba2f4d49f4f942a04da922
tree1b5abf5986bdedfe22c100167b21be5c4a45b39a
parent5cb20ef8a235c2027489a196bba27630ca21a00b
[compiler-rt][test] fix zero_page_pc on arm64e

on arm64e, pointer auth would catch this access violation before asan.
sign the function pointer so pointer auth will ignore this violation and let asan catch it in this test case.

rdar://79652167

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D104828
compiler-rt/test/asan/TestCases/zero_page_pc.cpp