================ @@ -190,3 +210,38 @@ method some_class::good_coroutine_calls_custom_constructor(float) { // CHECK: invoke void @_ZNSt16coroutine_traitsIJ6methodR10some_classfEE12promise_typeC1ES2_f(ptr {{[^,]*}} %__promise, ptr noundef nonnull align 1 dereferenceable(1) %{{.+}}, float co_return; } + + +struct MSParm { + int val; + ~MSParm(); +}; + +void consume(int) noexcept; + +// Similarly to the [[clang::trivial_abi]] parameters, with the MSVC ABI ---------------- rnk wrote:
Right, this is a good edge case to motivate generalizing this for all parameters. https://github.com/llvm/llvm-project/pull/127653 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits