]> granicus.if.org Git - clang/commitdiff
x86-32: Use Ignore to avoid passing empty structs (instead of Expand).
authorDaniel Dunbar <daniel@zuster.org>
Thu, 5 Feb 2009 01:50:07 +0000 (01:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 5 Feb 2009 01:50:07 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp

index b0a2f586ea3cca0bc182fcc06ef49889dad90499..b7459b2229935924dfdac72d46f3dc30a5dd2bdd 100644 (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