[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:36:14 PDT 2024


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

Think you, updated

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


More information about the cfe-commits mailing list