================
@@ -541,7 +588,33 @@ struct scan_results
 };
 
 }  // unnamed namespace
+} // extern "C"
+
+namespace {
+// The logical model for casting authenticated function pointers makes
+// it impossible to directly cast them without breaking the authentication,
+// as a result we need this pair of helpers.
+template <typename PtrType>
+[[maybe_unused]] void set_landing_pad_as_ptr(scan_results& results, const 
PtrType& out) {
----------------
ojhunt wrote:

you did not get a warning when not compiling arm64e support? It's possible 
trunk clang has fixed this?

https://github.com/llvm/llvm-project/pull/143230
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to