rnk added a subscriber: hans.
rnk added a comment.

Regarding the usage of isPOD in the MSVC ABI code, we should have a routine 
similar to `isTrivialForAArch64MSVC` that works for the other MSVC 
architectures that we support (x86, x64, and arm32). I don't think we should 
try to rely on definition data bits. Clang is almost always tracking something 
slightly different than what MSVC tracks, so we should write down MSVC's logic 
once and keep it separate from Clang's notion of POD.

I think you can work out MSVC's behavior with godbolt, but if you need a hand, 
I volunteer @hans to take a stab at refactoring 
`MicrosoftCXXABI::classifyReturnType`. I remember making lots of comments to 
try to simplify the code during review, but everyone is always wary of scope 
creep.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119051

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

Reply via email to