mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user