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:
9e390dd
)
fix pasto that broke bootstrap.
author
Chris Lattner
<sabre@nondot.org>
Sun, 10 Jan 2010 06:50:04 +0000
(06:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 10 Jan 2010 06:50:04 +0000
(06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93105
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstCombineCasts.cpp
b/lib/Transforms/InstCombine/InstCombineCasts.cpp
index fdc3eaee9a338c6b448c880e235ecab079312b8a..01c4f8cdf4e37ca95e0aba7b7e567198120f8a9c 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineCasts.cpp
@@
-623,7
+623,7
@@
static bool CanEvaluateZExtd(Value *V, const Type *Ty, const TargetData *TD) {
PHINode *PN = cast<PHINode>(I);
if (!CanEvaluateZExtd(PN->getIncomingValue(0), Ty, TD)) return false;
for (unsigned i = 1, e = PN->getNumIncomingValues(); i != e; ++i)
- if (!CanEvaluateZExtd(PN->getIncomingValue(
0
), Ty, TD)) return false;
+ if (!CanEvaluateZExtd(PN->getIncomingValue(
i
), Ty, TD)) return false;
return true;
}
default: