Unbreak the MSVC build. Since the "next" function already exists in the MSVC headers...
authorFrancois Pichet <pichet2000@gmail.com>
Wed, 20 Jul 2011 21:35:29 +0000 (21:35 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Wed, 20 Jul 2011 21:35:29 +0000 (21:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135623 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/MCFunction.cpp

index dd31402ddc66f8a66606383568b3e01db41a28c0..eef58cd13e043e865f0fca3a0a263aeb256a8ed5 100644 (file)
@@ -95,7 +95,7 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
           BB.addSucc(&f.getBlockAtAddress(Inst.Address+Inst.Size+Imm));
         // Conditional branches can also fall through to the next block.
         if (Desc.isConditionalBranch() && llvm::next(i) != e)
-          BB.addSucc(&next(i)->second);
+          BB.addSucc(&llvm::next(i)->second);
       } else {
         // Indirect branch. Bail and add all blocks of the function as a
         // successor.
@@ -104,8 +104,8 @@ MCFunction::createFunctionFromMC(StringRef Name, const MCDisassembler *DisAsm,
       }
     } else {
       // No branch. Fall through to the next block.
-      if (!Desc.isReturn() && next(i) != e)
-        BB.addSucc(&next(i)->second);
+      if (!Desc.isReturn() && llvm::next(i) != e)
+        BB.addSucc(&llvm::next(i)->second);
     }
   }