aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-06-20 05:19:37 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-06-20 05:19:37 +0000
commit289a27946fc11ae6b5a9aa517639d94efa4d91d9 (patch)
tree19d8faf88041d166a94352a702c9083b82437737
parent275c1f9f93bf71bcf97fe0315bbd9b86dd020177 (diff)
downloadexternal_llvm-289a27946fc11ae6b5a9aa517639d94efa4d91d9.zip
external_llvm-289a27946fc11ae6b5a9aa517639d94efa4d91d9.tar.gz
external_llvm-289a27946fc11ae6b5a9aa517639d94efa4d91d9.tar.bz2
Fix MSVC build. next() function already exists in the MSVC headers. This create a overload conflict. Make sure we pick up the llvm one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/TailDuplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TailDuplication.cpp b/lib/CodeGen/TailDuplication.cpp
index 1ac552e..f938401 100644
--- a/lib/CodeGen/TailDuplication.cpp
+++ b/lib/CodeGen/TailDuplication.cpp
@@ -635,7 +635,7 @@ TailDuplicatePass::duplicateSimpleBB(MachineBasicBlock *TailBB,
<< "From simple Succ: " << *TailBB);
MachineBasicBlock *NewTarget = *TailBB->succ_begin();
- MachineBasicBlock *NextBB = next(MachineFunction::iterator(PredBB));
+ MachineBasicBlock *NextBB = llvm::next(MachineFunction::iterator(PredBB));
DenseMap<unsigned, unsigned> LocalVRMap;
SmallVector<std::pair<unsigned,unsigned>, 4> CopyInfos;