================
@@ -362,6 +362,17 @@ class LangOptionsBase {
     BKey
   };
 
+  enum class PointerFieldProtectionKind {
----------------
pcc wrote:

I think that allowing this level of customization should be implemented as part 
of the separate opt-in solution (e.g. it may be a property of the qualifier). 
It is generally a reasonable assumption that operator new is the same for all 
types. In the unlikely case that it isn't, we aren't really doing anything 
wrong by using the malloc-derived decision here. It just means that we lose 
some entropy from the type or the pointer tag.

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

Reply via email to