OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6144686
)
Fix bug when checking phi operands in InstCombiner::visitPHINode(),
author
Jay Foad
<jay.foad@gmail.com>
Sat, 16 Apr 2011 14:17:37 +0000
(14:17 +0000)
committer
Jay Foad
<jay.foad@gmail.com>
Sat, 16 Apr 2011 14:17:37 +0000
(14:17 +0000)
found by code inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129641
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstCombinePHI.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstCombinePHI.cpp
b/lib/Transforms/InstCombine/InstCombinePHI.cpp
index
c91b793
..
37c3cd9
100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombinePHI.cpp
+++ b/
lib/Transforms/InstCombine/InstCombinePHI.cpp
@@
-831,7
+831,7
@@
Instruction *InstCombiner::visitPHINode(PHINode &PN) {
++InValNo;
if (InValNo != NumOperandVals) {
- Value *NonPhiInVal = PN.get
Operand
(InValNo);
+ Value *NonPhiInVal = PN.get
IncomingValue
(InValNo);
// Scan the rest of the operands to see if there are any conflicts, if so
// there is no need to recursively scan other phis.