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 | 96f1d8ebdd33b3f9bdb3b1163f36072c68599f42 (patch) | |
tree | 86a40f3abd0a781fd38106bc6f9b3137ccab1787 /lib/Transforms/Utils/SSI.cpp | |
parent | 907cd1a569c4b3aa8451ea509f6b1018134884d3 (diff) |
mass elimination of reliance on automatic iterator dereferencing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SSI.cpp')
-rw-r--r-- | lib/Transforms/Utils/SSI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SSI.cpp b/lib/Transforms/Utils/SSI.cpp index d54a0e5a75..62a93e4e99 100644 --- a/lib/Transforms/Utils/SSI.cpp +++ b/lib/Transforms/Utils/SSI.cpp @@ -80,12 +80,12 @@ void SSI::insertSigmaFunctions(SmallPtrSet<Instruction*, 4> &value) { for (Value::use_iterator begin = (*I)->use_begin(), end = (*I)->use_end(); begin != end; ++begin) { // Test if the Use of the Value is in a comparator - if (CmpInst *CI = dyn_cast<CmpInst>(begin)) { + if (CmpInst *CI = dyn_cast<CmpInst>(*begin)) { // Iterates through all uses of CmpInst for (Value::use_iterator begin_ci = CI->use_begin(), end_ci = CI->use_end(); begin_ci != end_ci; ++begin_ci) { // Test if any use of CmpInst is in a Terminator - if (TerminatorInst *TI = dyn_cast<TerminatorInst>(begin_ci)) { + if (TerminatorInst *TI = dyn_cast<TerminatorInst>(*begin_ci)) { insertSigma(TI, *I); } } |