[cfe-commits] r63813 - /cfe/trunk/lib/CodeGen/CGCall.cpp
Daniel Dunbar
daniel at zuster.org
Wed Feb 4 17:50:07 PST 2009
Author: ddunbar
Date: Wed Feb 4 19:50:07 2009
New Revision: 63813
URL: http://llvm.org/viewvc/llvm-project?rev=63813&view=rev
Log:
x86-32: Use Ignore to avoid passing empty structs (instead of Expand).
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=63813&r1=63812&r2=63813&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Wed Feb 4 19:50:07 2009
@@ -323,10 +323,10 @@
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
More information about the cfe-commits
mailing list