diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-22 11:43:44 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-22 11:43:44 +0000 |
| commit | ca7a2c1bd265e7d4dddbec5b157d3b004146abc7 (patch) | |
| tree | 3e1cbaf0c90f0704034e124635d576ef8ba48df9 /lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | b77c724a5d3415ea9eec3c7946b53007f586863d (diff) | |
| download | external_llvm-ca7a2c1bd265e7d4dddbec5b157d3b004146abc7.zip external_llvm-ca7a2c1bd265e7d4dddbec5b157d3b004146abc7.tar.gz external_llvm-ca7a2c1bd265e7d4dddbec5b157d3b004146abc7.tar.bz2 | |
pass dereferenced iterator to dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
| -rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 27b07d9..36a245f 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -949,7 +949,7 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *BB1) { UI != E; ++UI) { // Ignore any user that is not a PHI node in BB2. These can only occur in // unreachable blocks, because they would not be dominated by the instr. - PHINode *PN = dyn_cast<PHINode>(UI); + PHINode *PN = dyn_cast<PHINode>(*UI); if (!PN || PN->getParent() != BB2) return false; PHIUses.push_back(PN); |
