rjmccall added a comment.

In https://reviews.llvm.org/D45384#1060369, @ahatanak wrote:

> Yes. I intended it as a property that propagates to classes that contain or 
> derive from the type.
>
> Would it make it less confusing if I merged CXXRecordDecl::CanPassInRegisters 
> and RecordDecl::CannotPassInRegisters into a single enum? For example, the 
> enum could have three enumerators, "CanPass", "CannotPass", "CanNeverPass", 
> or something. Both "CannotPass" and "CanNeverPass" would force the type to be 
> passed indirectly, and the only difference is that "CanNeverPass" propagates 
> its property outwards and "CannotPass" doesn't. C structs are either 
> "CanPass" or "CanNeverPass" while C++ structs can take any of the three 
> values.


Yes, I think that would help a lot.


Repository:
  rC Clang

https://reviews.llvm.org/D45384



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

Reply via email to