[llvm-commits] [llvm] r124375 - /llvm/trunk/lib/VMCore/Constants.cpp

Jay Foad jay.foad at gmail.com
Thu Jan 27 06:44:55 PST 2011


Author: foad
Date: Thu Jan 27 08:44:55 2011
New Revision: 124375

URL: http://llvm.org/viewvc/llvm-project?rev=124375&view=rev
Log:
Fix indentation.

Modified:
    llvm/trunk/lib/VMCore/Constants.cpp

Modified: llvm/trunk/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Constants.cpp?rev=124375&r1=124374&r2=124375&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Constants.cpp (original)
+++ llvm/trunk/lib/VMCore/Constants.cpp Thu Jan 27 08:44:55 2011
@@ -591,10 +591,10 @@
              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 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 @@
   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);
 }
 





More information about the llvm-commits mailing list