diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-22 13:36:47 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-22 13:36:47 +0000 |
commit | dde79d8f1a8c08d386be32260f84c7a95cb356b8 (patch) | |
tree | 89cfba9be48e0310d4f489ba04b0d8990881c9ed /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 0525393a7954395014db6d7b1833df8c4121f6de (diff) | |
download | bcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.tar.gz bcm5719-llvm-dde79d8f1a8c08d386be32260f84c7a95cb356b8.zip |
mass elimination of reliance on automatic iterator dereferencing
llvm-svn: 109103
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index b8fd084c2d6..13c6a972602 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -862,9 +862,9 @@ void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PN) { // Check Incr uses. One user is PN and the other user is an exit condition // used by the conditional terminator. Value::use_iterator IncrUse = Incr->use_begin(); - Instruction *U1 = cast<Instruction>(IncrUse++); + Instruction *U1 = cast<Instruction>(*IncrUse++); if (IncrUse == Incr->use_end()) return; - Instruction *U2 = cast<Instruction>(IncrUse++); + Instruction *U2 = cast<Instruction>(*IncrUse++); if (IncrUse != Incr->use_end()) return; // Find exit condition, which is an fcmp. If it doesn't exist, or if it isn't |