diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:15:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:15:30 +0000 |
commit | 9b625030c8427a3bc56f5993c0b5b214c393042f (patch) | |
tree | 40bf688c425d93346f3f3a1119f4a9049682724e /lib/CodeGen | |
parent | d44023ecb7a699e52f119bec0eb86830989ff35a (diff) | |
download | llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.gz llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.bz2 llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.xz |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index d06ac172db..8cf36f83ed 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -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; } |