[all-commits] [llvm/llvm-project] ed4284: [Clang][LoongArch] Fix ABI handling of empty struc...
Lu Weining via All-commits
all-commits at lists.llvm.org
Tue Aug 8 00:58:16 PDT 2023
Branch: refs/heads/release/17.x
Home: https://github.com/llvm/llvm-project
Commit: ed4284a91f819e83bb0a021d8c76d85bf91036f9
https://github.com/llvm/llvm-project/commit/ed4284a91f819e83bb0a021d8c76d85bf91036f9
Author: Weining Lu <luweining at loongson.cn>
Date: 2023-08-08 (Tue, 08 Aug 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/CodeGen/Targets/LoongArch.cpp
M clang/test/CodeGen/LoongArch/abi-lp64d-empty-structs.c
Log Message:
-----------
[Clang][LoongArch] Fix ABI handling of empty structs in C++ to match GCC behaviour
GCC doesn't ignore non-zero-length array of empty structures in C++
while clang does. What this patch did is to match GCC's behaviour
although this rule is not documented in psABI.
Similar to D142327 for RISCV.
Reviewed By: xry111, xen0n
Differential Revision: https://reviews.llvm.org/D156116
More information about the All-commits
mailing list