================
@@ -1727,6 +1727,11 @@ ASTContext::PointerAuthContent 
ASTContext::findPointerAuthContent(QualType T) {
   T = T.getCanonicalType();
   if (T.hasAddressDiscriminatedPointerAuth())
     return PointerAuthContent::AddressDiscriminatedData;
+
+  T = getBaseElementType(T).getCanonicalType();
----------------
ojhunt wrote:

Adding this simplifies the logic in codegen, and to an extent removes a footgun 
in the form of not requiring every caller to lower the type to the base element 
prior to calling.

https://github.com/llvm/llvm-project/pull/144420
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to