diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 01:17:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-12 01:17:41 +0000 |
commit | 3c49edcaa11f056c58f70e7374932625a4019f3a (patch) | |
tree | 337fff3f0006e6a46ae307f7b6941f98b14849c4 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | 9fa0a268082d11c09275cd0770dcb3aaec08e833 (diff) | |
download | bcm5719-llvm-3c49edcaa11f056c58f70e7374932625a4019f3a.tar.gz bcm5719-llvm-3c49edcaa11f056c58f70e7374932625a4019f3a.zip |
Change inferred cast creation calls to more specific cast creations.
llvm-svn: 32460
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 753f4591c63..55f1c3c0ba3 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -239,7 +239,7 @@ static Value *LowerCTPOP(Value *V, Instruction *IP) { for (unsigned i = 1, ct = 0; i != BitSize; i <<= 1, ++ct) { Value *MaskCst = - ConstantExpr::getCast(ConstantInt::get(Type::ULongTy, MaskValues[ct]), + ConstantExpr::getTruncOrBitCast(ConstantInt::get(Type::ULongTy, MaskValues[ct]), V->getType()); Value *LHS = BinaryOperator::createAnd(V, MaskCst, "cppop.and1", IP); Value *VShift = new ShiftInst(Instruction::LShr, V, |