diff options
Diffstat (limited to 'lib/Bytecode/Reader')
-rw-r--r-- | lib/Bytecode/Reader/InstructionReader.cpp | 2 | ||||
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 2d28db1..9b98d94 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/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/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); } |