diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-02 06:00:15 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-08-02 06:00:15 +0000 |
commit | 40b31ad3ee520ad263387d8c0a8a9924bdeb9282 (patch) | |
tree | c852558e2b4d82c29d280317df525f5cfb1b807f /llvm/lib/Transforms/IPO/GlobalOpt.cpp | |
parent | 71c723da296f8252d04bb639005edf9c247fba90 (diff) | |
download | bcm5719-llvm-40b31ad3ee520ad263387d8c0a8a9924bdeb9282.tar.gz bcm5719-llvm-40b31ad3ee520ad263387d8c0a8a9924bdeb9282.zip |
Prefix `next' iterator operation with `llvm::'.
Fixes potential ambiguity problems on VS 2010.
Patch by nobled!
llvm-svn: 110029
Diffstat (limited to 'llvm/lib/Transforms/IPO/GlobalOpt.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index 0edbf43f427..9ea98ec4775 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -2078,7 +2078,7 @@ static bool isSimpleEnoughPointerToCommit(Constant *C) { return false; // The first index must be zero. - ConstantInt *CI = dyn_cast<ConstantInt>(*next(CE->op_begin())); + ConstantInt *CI = dyn_cast<ConstantInt>(*llvm::next(CE->op_begin())); if (!CI || !CI->isZero()) return false; // The remaining indices must be compile-time known integers within the |