mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Replace all usages of Type::isPointerType with isa<PointerType>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -277,7 +277,7 @@ ChooseRegOrImmed(Value* val,
|
||||
|
||||
// Otherwise it needs to be an integer or a NULL pointer
|
||||
if (! CPV->getType()->isIntegral() &&
|
||||
! (CPV->getType()->isPointerType() &&
|
||||
! (isa<PointerType>(CPV->getType()) &&
|
||||
CPV->isNullValue()))
|
||||
return opType;
|
||||
|
||||
@@ -287,7 +287,7 @@ ChooseRegOrImmed(Value* val,
|
||||
// unsigned constants to signed).
|
||||
//
|
||||
int64_t intValue;
|
||||
if (CPV->getType()->isPointerType())
|
||||
if (isa<PointerType>(CPV->getType()))
|
||||
{
|
||||
intValue = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user