From: Nick Lewycky Date: Sun, 3 Jan 2010 00:55:31 +0000 (+0000) Subject: Cleanup. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=11ed0317bc3ee77e7d97140df6f7471fe140a7b1;p=oota-llvm.git Cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92436 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 23db4bb0587..cb7ccaf7aa6 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;