diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-15 05:42:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-15 05:42:47 +0000 |
commit | 27a98482bd70dd12eecd02ad600f78a2fc6c16a2 (patch) | |
tree | 52263c145f40a2d88d8ca0e2f2970e7b3a3b1a96 /lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | fdb5b01df486f8fca44927a38dc9763e9d538e4c (diff) |
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index 220601611d..471687a243 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -2290,7 +2290,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) { if (match(Op0, m_Not(m_Value(A)))) { if (match(Op1, m_Not(m_Value(B)))) return new ICmpInst(I.getPredicate(), B, A); - if (ConstantInt *RHSC = dyn_cast<ConstantInt>(B)) + if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1)) return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); } |