mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 08:25:27 +00:00
eliminate calls to Type::isInteger, preferring isIntegral instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33222 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,7 +107,7 @@ void IntrinsicLowering::AddPrototypes(Module &M) {
|
||||
/// LowerBSWAP - Emit the code to lower bswap of V before the specified
|
||||
/// instruction IP.
|
||||
static Value *LowerBSWAP(Value *V, Instruction *IP) {
|
||||
assert(V->getType()->isInteger() && "Can't bswap a non-integer type!");
|
||||
assert(V->getType()->isIntegral() && "Can't bswap a non-integer type!");
|
||||
|
||||
unsigned BitSize = V->getType()->getPrimitiveSizeInBits();
|
||||
|
||||
@@ -193,7 +193,7 @@ static Value *LowerBSWAP(Value *V, Instruction *IP) {
|
||||
/// LowerCTPOP - Emit the code to lower ctpop of V before the specified
|
||||
/// instruction IP.
|
||||
static Value *LowerCTPOP(Value *V, Instruction *IP) {
|
||||
assert(V->getType()->isInteger() && "Can't ctpop a non-integer type!");
|
||||
assert(V->getType()->isIntegral() && "Can't ctpop a non-integer type!");
|
||||
|
||||
static const uint64_t MaskValues[6] = {
|
||||
0x5555555555555555ULL, 0x3333333333333333ULL,
|
||||
|
Reference in New Issue
Block a user