[clang] [clang] assume_aligned incorrectly diagnoses a dependent return type (PR #111573)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 11:53:27 PDT 2024


================
@@ -1216,6 +1216,8 @@ static void handlePreferredName(Sema &S, Decl *D, const ParsedAttr &AL) {
 }
 
 bool Sema::isValidPointerAttrType(QualType T, bool RefOkay) {
+  if (T->isDependentType())
----------------
AmrDeveloper wrote:

Done, please check the updated documentation of the function

https://github.com/llvm/llvm-project/pull/111573


More information about the cfe-commits mailing list