diff options
author | Longsheng Mou <moulongsheng@huawei.com> | 2024-08-02 09:20:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 09:20:49 +0800 |
commit | 4461b69022ebd43350f560d4643ba6f373d891b7 (patch) | |
tree | 98f252a93a06fdbdae086d8e4bdb025147311cb3 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | c5f1395f2f7f92015748069528d46ad89cecc9f1 (diff) | |
download | llvm-4461b69022ebd43350f560d4643ba6f373d891b7.zip llvm-4461b69022ebd43350f560d4643ba6f373d891b7.tar.gz llvm-4461b69022ebd43350f560d4643ba6f373d891b7.tar.bz2 |
[X86_32][C++] fix 0 sized struct case in vaarg. (#86388)
struct SuperEmpty { struct{ int a[0];} b;};
Such 0 sized structs in c++ mode can not be ignored in i386 for that c++
fields are never empty.But when EmitVAArg, its size is 0, so that
va_list not increase.Maybe we can just Ignore this kind of arguments,
like X86_64 did. Fix #86385.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions