aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
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;
}