[MS] For unknown ISAs, pass non-trivially copyable arguments indirectly
authorReid Kleckner <rnk@google.com>
Thu, 24 Sep 2020 21:11:06 +0000 (14:11 -0700)
committerReid Kleckner <rnk@google.com>
Thu, 24 Sep 2020 23:29:48 +0000 (16:29 -0700)
commitecfc9b971269a86b101cddf1fd9f0976be4096d0
tree9ac2fa6a0292ffabe089064885c9425ad238cf74
parentb8a50e920704436ddcbe0cc9d2020935d7e37095
[MS] For unknown ISAs, pass non-trivially copyable arguments indirectly

Passing them directly is likely to be non-conforming, since it usually
involves copying the bytes of the record. For unknown architectures, we
don't know what MSVC does or will do, but we should at least try to
conform as well as we can.
clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/test/CodeGenCXX/microsoft-abi-unknown-arch.cpp [new file with mode: 0644]