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 | 497459d5fd94bf918302593b6ef3a1ee22f12ece (patch) | |
| tree | 726ca04654e397b7486e29012537b9b06c73c556 /llvm/lib/Transforms/InstCombine | |
| parent | f3c4eefff8b97117d6ba0ab5ecfcc574d2166c23 (diff) | |
| download | bcm5719-llvm-497459d5fd94bf918302593b6ef3a1ee22f12ece.tar.gz bcm5719-llvm-497459d5fd94bf918302593b6ef3a1ee22f12ece.zip | |
fix typo
llvm-svn: 123516
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 220601611d7..471687a2437 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/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); } |

