projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11aa60d
)
pass dereferenced iterator to dyn_cast
author
Gabor Greif
<ggreif@gmail.com>
Thu, 22 Jul 2010 11:43:44 +0000
(11:43 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Thu, 22 Jul 2010 11:43:44 +0000
(11:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109098
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index 27b07d9731a585c7a732e66b242760f3eaff6dec..36a245ff8c92a20a7d9afade07387631f1e6a666 100644
(file)
--- 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);