https://github.com/ojhunt approved this pull request.
This looks good to me, if we encounter perf issues we might want to consider
adding something like
```cpp
#ifdef __PTRAUTH__
template <class T> struct HardenedPtr {
T* ptr;
// pointer interfaces below
};
#else
template <class T> using HardenedPtr = T;
#endif
```
(maybe even something to ptrauth.h `ptrauth_parameter<T>` or something similar
at some point)
Not because it removes the ptrauth costs but because it might help if aliasing
problems are hurting perf
https://github.com/llvm/llvm-project/pull/173765
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits