clang-format my last commit
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 5 Apr 2015 22:44:57 +0000 (22:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 5 Apr 2015 22:44:57 +0000 (22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234127 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/IRBuilder.h
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

index 18d8199d47615505ceb47d2c88ff04e83dd6a3c8..f5920ab0984803fad4696cf4c0270bfd5e7be9f9 100644 (file)
@@ -1104,16 +1104,15 @@ public:
                                     const Twine &Name = "") {
     return CreateConstInBoundsGEP2_32(nullptr, Ptr, Idx0, Idx1, Name);
   }
-  Value *CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1,
-                                    const Twine &Name = "") {
+  Value *CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0,
+                                    unsigned Idx1, const Twine &Name = "") {
     Value *Idxs[] = {
       ConstantInt::get(Type::getInt32Ty(Context), Idx0),
       ConstantInt::get(Type::getInt32Ty(Context), Idx1)
     };
 
     if (Constant *PC = dyn_cast<Constant>(Ptr))
-      return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs),
-                    Name);
+      return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name);
 
     return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
   }
@@ -1162,7 +1161,8 @@ public:
   Value *CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = "") {
     return CreateStructGEP(nullptr, Ptr, Idx, Name);
   }
-  Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx, const Twine &Name = "") {
+  Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx,
+                         const Twine &Name = "") {
     return CreateConstInBoundsGEP2_32(Ty, Ptr, 0, Idx, Name);
   }
 
index 7aef8cf5ac001393d911166d808a840d3dfc432d..a838bdacc56d2cb020e2b0f3c41ba8ff969f15f6 100644 (file)
@@ -1472,7 +1472,8 @@ void DFSanVisitor::visitCallSite(CallSite CS) {
           Args.push_back(DFSF.getShadow(*i));
 
         if (FT->isVarArg()) {
-          auto *LabelVATy = ArrayType::get(DFSF.DFS.ShadowTy, CS.arg_size() - FT->getNumParams());
+          auto *LabelVATy = ArrayType::get(DFSF.DFS.ShadowTy,
+                                           CS.arg_size() - FT->getNumParams());
           auto *LabelVAAlloca = new AllocaInst(LabelVATy, "labelva",
                                                DFSF.F->getEntryBlock().begin());