summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-10 20:09:08 +0000
committerChris Lattner <sabre@nondot.org>2001-09-10 20:09:08 +0000
commitc4b26345747a9d45737d4284980d01b958e4d40e (patch)
tree07109e9b9f0b4dfef594715642a6dbf10cafdc22 /llvm/lib/Bytecode
parent212c907cf100869234c9ba7bc9e6ebd541f64722 (diff)
downloadbcm5719-llvm-c4b26345747a9d45737d4284980d01b958e4d40e.tar.gz
bcm5719-llvm-c4b26345747a9d45737d4284980d01b958e4d40e.zip
ModuleTyID doesn't exist anyymore
Use correct cast llvm-svn: 539
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Writer/ConstantWriter.cpp1
-rw-r--r--llvm/lib/Bytecode/Writer/InstructionWriter.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index 4940ea671be..24ceaecf2e2 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -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"
diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
index 3859ea83030..bb0990d1c21 100644
--- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
@@ -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;
}
OpenPOWER on IntegriCloud