Commit 631248d
[X86_64] fix empty structure vaarg in c++ (llvm#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 llvm#77036
Co-authored-by: Longsheng Mou <[email protected]>1 parent 71defe4 commit 631248d
File tree
2 files changed
+27
-0
lines changed- clang
- lib/CodeGen/Targets
- test/CodeGenCXX
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3019 | 3019 | | |
3020 | 3020 | | |
3021 | 3021 | | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
3022 | 3026 | | |
3023 | 3027 | | |
3024 | 3028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments