aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2012-12-08 05:00:59 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2012-12-08 05:00:59 +0000
commit19bfae479708a2f212513d6060b40334b67f4d80 (patch)
tree53820f86d706d7b68c2dcd5dc1e87dd07795881c
parent0956ae5ac2d5fac56248a03a9dd8caa398a39cc5 (diff)
Fix an inadvertent typo error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169671 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LoopIdiomRecognize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 153fedf2c3..8f929941d5 100644
--- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -455,7 +455,7 @@ bool NclPopcountRecognize::detectIdiom(Instruction *&CntInst,
continue;
PHINode *Phi = dyn_cast<PHINode>(Inst->getOperand(0));
- if (!Phi && Phi->getParent() != LoopEntry)
+ if (!Phi || Phi->getParent() != LoopEntry)
continue;
// Check if the result of the instruction is live of the loop.