[PATCH] D142327: [clang][RISCV] Fix ABI handling of empty structs with hard FP calling conventions in C++

Alex Bradbury via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 06:57:04 PDT 2023


asb updated this revision to Diff 544349.
asb added a comment.

I've updated the patch to fix the reported issue (adding an additional check to detectFPCCEligibleStruct). What I haven't been able to do so far is to extract a test case that shows the issue indicated by @SixWeining without relying on libcxx headers. I may well be missing something obvious here.


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

https://reviews.llvm.org/D142327

Files:
  clang/docs/ReleaseNotes.rst
  clang/lib/CodeGen/ABIInfoImpl.cpp
  clang/lib/CodeGen/ABIInfoImpl.h
  clang/lib/CodeGen/Targets/RISCV.cpp
  clang/test/CodeGen/RISCV/abi-empty-structs.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142327.544349.patch
Type: text/x-patch
Size: 9690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230726/e33436d9/attachment-0001.bin>


More information about the cfe-commits mailing list