diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-01-03 00:55:31 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-01-03 00:55:31 +0000 |
commit | 11ed0317bc3ee77e7d97140df6f7471fe140a7b1 (patch) | |
tree | ab8795c23a94a8da903c27f4e610a8c27468b93a | |
parent | df3d63b896a5435c2d8c06e147e19b2a358d381d (diff) |
Cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92436 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 23db4bb058..cb7ccaf7aa 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -7422,10 +7422,9 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, Constant::getNullValue(Q->getType())); Instruction *Op; if (ICI.getPredicate() == ICmpInst::ICMP_EQ) - Op = BinaryOperator::CreateAnd(ICIP, ICIQ, ""); + Op = BinaryOperator::CreateAnd(ICIP, ICIQ); else - Op = BinaryOperator::CreateOr(ICIP, ICIQ, ""); - Op->takeName(&ICI); + Op = BinaryOperator::CreateOr(ICIP, ICIQ); return Op; } break; |