x86-32: Use Ignore to avoid passing empty structs (instead of Expand).

llvm-svn: 63813
This commit is contained in:
Daniel Dunbar 2009-02-05 01:50:07 +00:00
parent b842d529a3
commit 70245be397
1 changed files with 2 additions and 2 deletions

View File

@ -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