summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-08 20:55:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-08 20:55:49 +0000
commit4861346c441b48c11ba1d094c20caad11ed74da6 (patch)
tree3486c99acd04aaf8628115c9aeb8bc383b26fd05 /clang/lib/CodeGen/CGCall.cpp
parent9ee6a31bb89e59e06836515c374bfed9556b7ea4 (diff)
downloadbcm5719-llvm-4861346c441b48c11ba1d094c20caad11ed74da6.tar.gz
bcm5719-llvm-4861346c441b48c11ba1d094c20caad11ed74da6.zip
Darwin x86_32: Improve bit-field handling for returning records.
- This turns out to be a no-op now that most of the handling for everything else is in place. llvm-svn: 71261
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index e9f2bba303b..eba5ff5b5e7 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -342,10 +342,6 @@ bool X86_32ABIInfo::shouldReturnTypeInRegister(QualType Ty,
e = RT->getDecl()->field_end(Context); i != e; ++i) {
const FieldDecl *FD = *i;
- // FIXME: Reject bit-fields wholesale for now; this is incorrect.
- if (FD->isBitField())
- return false;
-
// Empty structures are ignored.
if (isEmptyRecord(Context, FD->getType()))
continue;
OpenPOWER on IntegriCloud