jkorous added inline comments.

================
Comment at: clang/lib/Sema/SemaType.cpp:266
+        auto *NewAttrTy = cast<AttributedType>(T.getTypePtr());
+        for (TypeAttrPair &A : AttrsForTypes) {
+          if (A.first == AttrTy)
----------------
Do you think it would make sense to terminate the loop early if 
`AttrsForTypesSorted == true`?


================
Comment at: clang/lib/Sema/SemaType.cpp:270
+        }
+        AttrsForTypesSorted = false;
+      }
----------------
Do you think it would be reasonable to conditionally assign (or rather keep) 
`AttrsForTypesSorted = true` in case they were sorted previously and new key 
doesn't break the order?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58659/new/

https://reviews.llvm.org/D58659



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to