[all-commits] [llvm/llvm-project] d65f42: [RISCV] Handle empty structs/unions passing in C++...

Sudharsan Veeravalli via All-commits all-commits at lists.llvm.org
Mon Jul 8 18:18:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d65f4232026a6c0fcd2431e1d28a7ad49127f6e5
      https://github.com/llvm/llvm-project/commit/d65f4232026a6c0fcd2431e1d28a7ad49127f6e5
  Author: Sudharsan Veeravalli <quic_svs at quicinc.com>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/Targets/RISCV.cpp
    M clang/test/CodeGen/RISCV/abi-empty-structs.c

  Log Message:
  -----------
  [RISCV] Handle empty structs/unions passing in C++ (#97315)

According to RISC-V integer calling convention empty structs or union
arguments or return values are ignored by C compilers which support them
as a non-standard extension. This is not the case for C++, which
requires them to be sized types.

Fixes #97285



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list