[all-commits] [llvm/llvm-project] 631248: [X86_64] fix empty structure vaarg in c++ (#77907)
hstk30-hw via All-commits
all-commits at lists.llvm.org
Wed Mar 20 18:25:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 631248dcd26fdec772cedb569be94ff8f12d0901
https://github.com/llvm/llvm-project/commit/631248dcd26fdec772cedb569be94ff8f12d0901
Author: hstk30-hw <hanwei62 at huawei.com>
Date: 2024-03-21 (Thu, 21 Mar 2024)
Changed paths:
M clang/lib/CodeGen/Targets/X86.cpp
A clang/test/CodeGenCXX/x86_64-vaarg.cpp
Log Message:
-----------
[X86_64] fix empty structure vaarg in c++ (#77907)
SizeInBytes of empty structure is 0 in C, while 1 in C++. And empty
structure argument of the function is ignored in X86_64 backend.As a
result, the value of variable arguments in C++ is incorrect. fix #77036
Co-authored-by: Longsheng Mou <moulongsheng at huawei.com>
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