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.

  rC Clang


cfe-commits mailing list

Reply via email to