From: Chris Lattner Date: Mon, 6 Aug 2007 16:36:18 +0000 (+0000) Subject: Fix a regression compiling 2005-05-11-Popcount-ffs-fls with the CBE, X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=914ce4508d46bdc5db0eec1aff8051ccd94c3d5f;p=oota-llvm.git Fix a regression compiling 2005-05-11-Popcount-ffs-fls with the CBE, introduced by chandler's patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index d92ee3fbbc1..da6a876e83d 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -231,7 +231,7 @@ static Value *LowerCTPOP(Value *V, Instruction *IP) { } } - return CastInst::createIntegerCast(Count, Type::Int32Ty, false, "ctpop", IP); + return Count; } /// LowerCTLZ - Emit the code to lower ctlz of V before the specified