[llvm] r237359 - Attempt to fix MSVC bots

Adam Nemet anemet at apple.com
Thu May 14 05:33:32 PDT 2015


Author: anemet
Date: Thu May 14 07:33:32 2015
New Revision: 237359

URL: http://llvm.org/viewvc/llvm-project?rev=237359&view=rev
Log:
Attempt to fix MSVC bots

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp?rev=237359&r1=237358&r2=237359&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopDistribute.cpp Thu May 14 07:33:32 2015
@@ -55,10 +55,9 @@ static cl::opt<bool> DistributeNonIfConv
 
 STATISTIC(NumLoopsDistributed, "Number of loops distributed");
 
-namespace {
 /// \brief Remaps instructions in a loop including the preheader.
-void remapInstructionsInLoop(const SmallVectorImpl<BasicBlock *> &Blocks,
-                             ValueToValueMapTy &VMap) {
+static void remapInstructionsInLoop(const SmallVectorImpl<BasicBlock *> &Blocks,
+                                    ValueToValueMapTy &VMap) {
   // Rewrite the code to refer to itself.
   for (auto *BB : Blocks)
     for (auto &Inst : *BB)
@@ -120,6 +119,7 @@ static Loop *cloneLoopWithPreheader(Basi
   return NewLoop;
 }
 
+namespace {
 /// \brief Maintains the set of instructions of the loop for a partition before
 /// cloning.  After cloning, it hosts the new loop.
 class InstPartition {





More information about the llvm-commits mailing list