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/Bytecode/Reader/Reader.cpp | |
parent | d44023ecb7a699e52f119bec0eb86830989ff35a (diff) | |
download | external_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.zip external_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.gz external_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.bz2 |
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/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 70a6ae9..c4ab67f 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -389,7 +389,7 @@ bool BytecodeParser::ParseModuleGlobalInfo(const uchar *&Buf, const uchar *End, // VarType Fields: bit0 = isConstant, bit1 = hasInitializer, // bit2 = isInternal, bit3+ = slot# const Type *Ty = getType(VarType >> 3); - if (!Ty || !Ty->isPointerType()) { + if (!Ty || !isa<PointerType>(Ty)) { Error = "Global not pointer type! Ty = " + Ty->getDescription(); return failure(true); } |