Reflow to a style doug prefers, increasing indentation :-)

llvm-svn: 120746
This commit is contained in:
Chris Lattner 2010-12-02 22:52:04 +00:00
parent 7528af2f86
commit 5cd8475564
1 changed files with 24 additions and 24 deletions

View File

@ -741,7 +741,8 @@ static uint64_t GetNumNonZeroBytesInInit(const Expr *E, CodeGenFunction &CGF) {
// InitListExprs for structs have to be handled carefully. If there are
// reference members, we need to consider the size of the reference, not the
// referencee. InitListExprs for unions and arrays can't have references.
if (!E->getType()->isUnionType() && !E->getType()->isArrayType()) {
if (const RecordType *RT = E->getType()->getAs<RecordType>()) {
if (!RT->isUnionType()) {
RecordDecl *SD = E->getType()->getAs<RecordType>()->getDecl();
uint64_t NumNonZeroBytes = 0;
@ -759,16 +760,15 @@ static uint64_t GetNumNonZeroBytesInInit(const Expr *E, CodeGenFunction &CGF) {
const Expr *E = ILE->getInit(ILEElement++);
// Reference values are always non-null and have the width of a pointer.
if (Field->getType()->isReferenceType()) {
if (Field->getType()->isReferenceType())
NumNonZeroBytes += CGF.getContext().Target.getPointerWidth(0);
continue;
}
else
NumNonZeroBytes += GetNumNonZeroBytesInInit(E, CGF);
}
return NumNonZeroBytes;
}
}
uint64_t NumNonZeroBytes = 0;