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 | ff9cd7ace70970e048760f78cac045b01e9ec6ef (patch) | |
tree | 522372036d67160ec7d8ebca23349629eaf4fa0a | |
parent | 906be1b580b77a6023d07d3362aff22ff2cc4787 (diff) | |
download | bcm5719-llvm-ff9cd7ace70970e048760f78cac045b01e9ec6ef.tar.gz bcm5719-llvm-ff9cd7ace70970e048760f78cac045b01e9ec6ef.zip |
Cleanup.
llvm-svn: 92436
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 23db4bb0587..cb7ccaf7aa6 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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; |