Fix indentation.
authorJay Foad <jay.foad@gmail.com>
Thu, 27 Jan 2011 14:44:55 +0000 (14:44 +0000)
committerJay Foad <jay.foad@gmail.com>
Thu, 27 Jan 2011 14:44:55 +0000 (14:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124375 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index 46daa61d998928de72240cde7a5340509007251d..3521ee7b16cfd60ffcd0d9069de2ecc153d44111 100644 (file)
@@ -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);
 }