From 6091e0289bbd26b1eadf19f5c7dd21e429f9c00e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 10 Jan 2010 06:50:04 +0000 Subject: [PATCH] fix pasto that broke bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93105 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/InstCombine/InstCombineCasts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/InstCombine/InstCombineCasts.cpp b/lib/Transforms/InstCombine/InstCombineCasts.cpp index fdc3eaee9a3..01c4f8cdf4e 100644 --- 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(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: