summaryrefslogtreecommitdiff
path: root/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
commitb64e774ce53da6b56ec055cfb62a4a1d246b7228 (patch)
treea0ff44d3e6b8e39dac00a74b61c508d2c0b10f62 /lib/Bytecode
parent1767edd98304724e73456d33d2d168e583ea30ac (diff)
downloadllvm-b64e774ce53da6b56ec055cfb62a4a1d246b7228.tar.gz
llvm-b64e774ce53da6b56ec055cfb62a4a1d246b7228.tar.bz2
llvm-b64e774ce53da6b56ec055cfb62a4a1d246b7228.tar.xz
ModuleTyID doesn't exist anyymore
Use correct cast git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Writer/ConstantWriter.cpp1
-rw-r--r--lib/Bytecode/Writer/InstructionWriter.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp
index 4940ea671b..24ceaecf2e 100644
--- a/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/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/lib/Bytecode/Writer/InstructionWriter.cpp b/lib/Bytecode/Writer/InstructionWriter.cpp
index 3859ea8303..bb0990d1c2 100644
--- a/lib/Bytecode/Writer/InstructionWriter.cpp
+++ b/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;
}