diff options
| author | Mike Stump <mrs@apple.com> | 2009-07-30 22:28:39 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-07-30 22:28:39 +0000 |
| commit | b3589f44c5d295cd41de2c83f3475116835eeebd (patch) | |
| tree | 9c26182dde2d8018183b31cfcf3d86e8a532f9b9 /lib/CodeGen/CGExpr.cpp | |
| parent | 636463e4c43be15e2f0fd0b8a08667f3066d8af7 (diff) | |
| download | clang-b3589f44c5d295cd41de2c83f3475116835eeebd.tar.gz clang-b3589f44c5d295cd41de2c83f3475116835eeebd.tar.bz2 clang-b3589f44c5d295cd41de2c83f3475116835eeebd.tar.xz | |
Canonicalize else spacing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 4065758617..8367c27fa1 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -619,8 +619,7 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src, Vec = Builder.CreateShuffleVector(SrcVal, VMContext.getUndef(Vec->getType()), MaskV, "tmp"); - } - else if (NumDstElts > NumSrcElts) { + } else if (NumDstElts > NumSrcElts) { // Extended the source vector to the same length and then shuffle it // into the destination. // FIXME: since we're shuffling with undef, can we just use the indices @@ -649,8 +648,7 @@ void CodeGenFunction::EmitStoreThroughExtVectorComponentLValue(RValue Src, } llvm::Value *MaskV = llvm::ConstantVector::get(&Mask[0], Mask.size()); Vec = Builder.CreateShuffleVector(Vec, ExtSrcVal, MaskV, "tmp"); - } - else { + } else { // We should never shorten the vector assert(0 && "unexpected shorten vector length"); } @@ -679,8 +677,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { LV = LValue::MakeAddr(V, E->getType().getCVRQualifiers(), getContext().getObjCGCAttrKind(E->getType()), E->getType().getAddressSpace()); - } - else { + } else { llvm::Value *V = LocalDeclMap[VD]; assert(V && "DeclRefExpr not entered in LocalDeclMap?"); // local variables do not get their gc attribute set. @@ -733,8 +730,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { return LValue::MakeAddr(V, E->getType().getCVRQualifiers(), getContext().getObjCGCAttrKind(E->getType()), E->getType().getAddressSpace()); - } - else if (const ImplicitParamDecl *IPD = + } else if (const ImplicitParamDecl *IPD = dyn_cast<ImplicitParamDecl>(E->getDecl())) { llvm::Value *V = LocalDeclMap[IPD]; assert(V && "BlockVarDecl not entered in LocalDeclMap?"); @@ -1083,8 +1079,7 @@ LValue CodeGenFunction::EmitLValueForField(llvm::Value* BaseValue, // __weak attribute on a field is ignored. if (attr == QualType::Weak) attr = QualType::GCNone; - } - else if (Ty->isObjCObjectPointerType()) + } else if (Ty->isObjCObjectPointerType()) attr = QualType::Strong; } LValue LV = |
