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 | 181cc32365ad2bba3a83905ff2c3fabb416d2438 (patch) | |
tree | 76f5de6e4556294e07cb115ebe1f035fb3bac9f7 /llvm/lib/Bytecode | |
parent | 398a86f14e7535eb9e12bc2caba8d91c04d74a75 (diff) | |
download | bcm5719-llvm-181cc32365ad2bba3a83905ff2c3fabb416d2438.tar.gz bcm5719-llvm-181cc32365ad2bba3a83905ff2c3fabb416d2438.zip |
Replace all usages of Type::isPointerType with isa<PointerType>
llvm-svn: 2486
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Reader/InstructionReader.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Bytecode/Writer/InstructionWriter.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index 2d28db1b4c0..9b98d945305 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp @@ -345,7 +345,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, case Instruction::Free: V = getValue(Raw.Ty, Raw.Arg1); - if (!V->getType()->isPointerType()) return failure(true); + if (!isa<PointerType>(V->getType())) return failure(true); Res = new FreeInst(V); return false; diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 70a6ae97f3e..c4ab67f91b4 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/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); } diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp index 2c1ce975bcf..7ab953cf3cb 100644 --- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp @@ -198,7 +198,7 @@ void BytecodeWriter::processInstruction(const Instruction *I) { break; case Instruction::Store: Ty = I->getOperand(1)->getType(); // Encode the pointer type... - assert(Ty->isPointerType() && "Store to nonpointer type!?!?"); + assert(isa<PointerType>(Ty) && "Store to nonpointer type!?!?"); break; default: // Otherwise use the default behavior... Ty = NumOperands ? I->getOperand(0)->getType() : I->getType(); |