ModuleTyID doesn't exist anyymore
authorChris Lattner <sabre@nondot.org>
Mon, 10 Sep 2001 20:09:08 +0000 (20:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Sep 2001 20:09:08 +0000 (20:09 +0000)
Use correct cast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@539 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/ConstantWriter.cpp
lib/Bytecode/Writer/InstructionWriter.cpp

index 4940ea671be852765c3bdce63d84ea558624eb74..24ceaecf2e23d0eacf234599dd241c41d800a351 100644 (file)
@@ -80,7 +80,6 @@ void BytecodeWriter::outputType(const Type *T) {
     break;
   }
 
-  case Type::ModuleTyID:
   //case Type::PackedTyID:
   default:
     cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
index 3859ea8303096df24bb0aeed1a8aac47b183eed9..bb0990d1c212402057a2b62eae9ca7491e35891a 100644 (file)
@@ -215,7 +215,7 @@ void BytecodeWriter::processInstruction(const Instruction *I) {
     if (Slots[1] > MaxOpSlot) MaxOpSlot = Slots[1];
     NumOperands++;
   } else if (I->getOpcode() == Instruction::Call &&  // Handle VarArg calls
-            I->getOperand(0)->getType()->isMethodType()->isVarArg()) {
+            I->getOperand(0)->getType()->castMethodType()->isVarArg()) {
     outputInstrVarArgsCall(I, Table, Type, Out);
     return;
   }