diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-01-27 14:44:55 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-01-27 14:44:55 +0000 |
| commit | 9f32cfd35e831aa7c381bdb8727ebc389d8f177f (patch) | |
| tree | 22d8c8bf1d496c3b51d07778a3d7f1438681eb57 | |
| parent | 63fbaeda29060b5ed93859b13d4c75371a2d2157 (diff) | |
| download | bcm5719-llvm-9f32cfd35e831aa7c381bdb8727ebc389d8f177f.tar.gz bcm5719-llvm-9f32cfd35e831aa7c381bdb8727ebc389d8f177f.zip | |
Fix indentation.
llvm-svn: 124375
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 46daa61d998..3521ee7b16c 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -591,10 +591,10 @@ ConstantVector::ConstantVector(const VectorType *T, OperandTraits<ConstantVector>::op_end(this) - V.size(), V.size()) { Use *OL = OperandList; - for (std::vector<Constant*>::const_iterator I = V.begin(), E = V.end(); - I != E; ++I, ++OL) { - Constant *C = *I; - assert(C->getType() == T->getElementType() && + for (std::vector<Constant*>::const_iterator I = V.begin(), E = V.end(); + I != E; ++I, ++OL) { + Constant *C = *I; + assert(C->getType() == T->getElementType() && "Initializer for vector element doesn't match vector element type!"); *OL = C; } @@ -603,10 +603,10 @@ ConstantVector::ConstantVector(const VectorType *T, // ConstantVector accessors. Constant* ConstantVector::get(const VectorType* T, const std::vector<Constant*>& V) { - assert(!V.empty() && "Vectors can't be empty"); - LLVMContext &Context = T->getContext(); - LLVMContextImpl *pImpl = Context.pImpl; - + assert(!V.empty() && "Vectors can't be empty"); + LLVMContext &Context = T->getContext(); + LLVMContextImpl *pImpl = Context.pImpl; + // If this is an all-undef or alll-zero vector, return a // ConstantAggregateZero or UndefValue. Constant *C = V[0]; @@ -1240,7 +1240,7 @@ Constant *ConstantExpr::getFPCast(Constant *C, const Type *Ty) { if (SrcBits == DstBits) return C; // Avoid a useless cast Instruction::CastOps opcode = - (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); + (SrcBits > DstBits ? Instruction::FPTrunc : Instruction::FPExt); return getCast(opcode, C, Ty); } |

