[all-commits] [llvm/llvm-project] 4253fd: [LoongArch] Fix ABI mismatch with g++ when handlin...
Lu Weining via All-commits
all-commits at lists.llvm.org
Fri Nov 3 19:04:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4253fdc2c462da61cc0deb74a43265665720c828
https://github.com/llvm/llvm-project/commit/4253fdc2c462da61cc0deb74a43265665720c828
Author: Lu Weining <luweining at loongson.cn>
Date: 2023-11-04 (Sat, 04 Nov 2023)
Changed paths:
M clang/lib/CodeGen/Targets/LoongArch.cpp
M clang/test/CodeGen/LoongArch/abi-lp64d-empty-structs.c
M clang/test/CodeGen/LoongArch/abi-lp64d-empty-unions.c
Log Message:
-----------
[LoongArch] Fix ABI mismatch with g++ when handling empty unions (#71025)
In g++, empty unions are not ignored like empty structs when flattening
structs to examine whether the structs can be passed via FARs in C++.
This patch aligns clang++ with g++.
Fix https://github.com/llvm/llvm-project/issues/70890.
More information about the All-commits
mailing list