[all-commits] [llvm/llvm-project] e7a8a7: [Clang][LoongArch] Fix ABI handling of empty struc...
Lu Weining via All-commits
all-commits at lists.llvm.org
Mon Aug 7 18:12:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7a8a7d4977627ebc43e9ed43462aebad4a66e8d
https://github.com/llvm/llvm-project/commit/e7a8a7d4977627ebc43e9ed43462aebad4a66e8d
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