summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2010-08-02 06:00:15 +0000
committerOscar Fuentes <ofv@wanadoo.es>2010-08-02 06:00:15 +0000
commitee56c42168f6c4271593f6018c4409b6a5910302 (patch)
treecbc97623bf259278835c3cff3695d026a1c48d98 /lib/Analysis
parent44c7486c6331cdc726057b35ca57f00b5936e261 (diff)
downloadllvm-ee56c42168f6c4271593f6018c4409b6a5910302.tar.gz
llvm-ee56c42168f6c4271593f6018c4409b6a5910302.tar.bz2
llvm-ee56c42168f6c4271593f6018c4409b6a5910302.tar.xz
Prefix `next' iterator operation with `llvm::'.
Fixes potential ambiguity problems on VS 2010. Patch by nobled! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 7612f43f71..c6b7ad61d0 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -251,7 +251,7 @@ void SCEVCommutativeExpr::print(raw_ostream &OS) const {
OS << "(";
for (op_iterator I = op_begin(), E = op_end(); I != E; ++I) {
OS << **I;
- if (next(I) != E)
+ if (llvm::next(I) != E)
OS << OpStr;
}
OS << ")";
@@ -2805,7 +2805,7 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) {
return getUnknown(GEP);
const SCEV *TotalOffset = getConstant(IntPtrTy, 0);
gep_type_iterator GTI = gep_type_begin(GEP);
- for (GetElementPtrInst::op_iterator I = next(GEP->op_begin()),
+ for (GetElementPtrInst::op_iterator I = llvm::next(GEP->op_begin()),
E = GEP->op_end();
I != E; ++I) {
Value *Index = *I;