diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-05 01:50:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-05 01:50:07 +0000 |
commit | 70245be397c11ac1fac179470683703c50ea2ff7 (patch) | |
tree | 894bc884c162a1d3f50570c31107d9e2f8dc6bb5 /clang/lib/CodeGen/CGCall.cpp | |
parent | b842d529a36a3449b0b3affa389cdcd8eb97e4c0 (diff) | |
download | bcm5719-llvm-70245be397c11ac1fac179470683703c50ea2ff7.tar.gz bcm5719-llvm-70245be397c11ac1fac179470683703c50ea2ff7.zip |
x86-32: Use Ignore to avoid passing empty structs (instead of Expand).
llvm-svn: 63813
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index b0a2f586ea3..b7459b22299 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -323,10 +323,10 @@ ABIArgInfo X86_32ABIInfo::classifyArgumentType(QualType Ty, if (RT->getDecl()->hasFlexibleArrayMember()) return ABIArgInfo::getByVal(0); - // Expand empty structs (i.e. ignore) + // Ignore empty structs. uint64_t Size = Context.getTypeSize(Ty); if (Ty->isStructureType() && Size == 0) - return ABIArgInfo::getExpand(); + return ABIArgInfo::getIgnore(); // Expand structs with size <= 128-bits which consist only of // basic types (int, long long, float, double, xxx*). This is |