r201526 - Fix some minor whitespace issues.

Bob Wilson bob.wilson at apple.com
Mon Feb 17 11:21:01 PST 2014


Author: bwilson
Date: Mon Feb 17 13:20:59 2014
New Revision: 201526

URL: http://llvm.org/viewvc/llvm-project?rev=201526&view=rev
Log:
Fix some minor whitespace issues.

Modified:
    cfe/trunk/lib/CodeGen/CGExprScalar.cpp
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
    cfe/trunk/lib/CodeGen/CodeGenPGO.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=201526&r1=201525&r2=201526&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Mon Feb 17 13:20:59 2014
@@ -1298,7 +1298,7 @@ Value *ScalarExprEmitter::VisitCastExpr(
     Value *Src = Visit(const_cast<Expr*>(E));
     llvm::Type *SrcTy = Src->getType();
     llvm::Type *DstTy = ConvertType(DestTy);
-    if (SrcTy->isPtrOrPtrVectorTy() && DstTy->isPtrOrPtrVectorTy() && 
+    if (SrcTy->isPtrOrPtrVectorTy() && DstTy->isPtrOrPtrVectorTy() &&
         SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) {
       llvm::Type *MidTy = CGF.CGM.getDataLayout().getIntPtrType(SrcTy);
       return Builder.CreateIntToPtr(Builder.CreatePtrToInt(Src, MidTy), DstTy);

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=201526&r1=201525&r2=201526&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Mon Feb 17 13:20:59 2014
@@ -394,7 +394,7 @@ static void GenOpenCLArgMetadata(const F
       if (ty->isImageType())
         AddrSpc =
           CGM.getContext().getTargetAddressSpace(LangAS::opencl_global);
-      
+
       addressQuals.push_back(Builder.getInt32(AddrSpc));
 
       // Get argument type name.

Modified: cfe/trunk/lib/CodeGen/CodeGenPGO.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenPGO.cpp?rev=201526&r1=201525&r2=201526&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenPGO.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenPGO.cpp Mon Feb 17 13:20:59 2014
@@ -480,8 +480,7 @@ llvm::MDNode *CodeGenPGO::createBranchWe
   return MDHelper.createBranchWeights(TrueCount + 1, FalseCount + 1);
 }
 
-llvm::MDNode *
-CodeGenPGO::createBranchWeights(ArrayRef<uint64_t> Weights) {
+llvm::MDNode *CodeGenPGO::createBranchWeights(ArrayRef<uint64_t> Weights) {
   llvm::MDBuilder MDHelper(CGM.getLLVMContext());
   // TODO: need to scale down to 32-bits, instead of just truncating.
   // According to Laplace's Rule of Succession, it is better to compute the





More information about the cfe-commits mailing list