diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-04 22:19:18 +0000 |
commit | e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0 (patch) | |
tree | 2974769e972954dcb30707d7c7aab0ea1d6c661d /llvm/lib/Bytecode/Writer | |
parent | e17c1fde8382a37d86ba9b234dca8c639f06f1c3 (diff) | |
download | bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.tar.gz bcm5719-llvm-e2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0.zip |
s/MethodType/FunctionType
llvm-svn: 2115
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r-- | llvm/lib/Bytecode/Writer/InstructionWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp index f047ab5e1c5..0be903aad0a 100644 --- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp @@ -226,13 +226,13 @@ void BytecodeWriter::processInstruction(const Instruction *I) { NumOperands++; } else if (const CallInst *CI = dyn_cast<CallInst>(I)) {// Handle VarArg calls PointerType *Ty = cast<PointerType>(CI->getCalledValue()->getType()); - if (cast<MethodType>(Ty->getElementType())->isVarArg()) { + if (cast<FunctionType>(Ty->getElementType())->isVarArg()) { outputInstrVarArgsCall(I, Table, Type, Out); return; } } else if (const InvokeInst *II = dyn_cast<InvokeInst>(I)) { // ... & Invokes PointerType *Ty = cast<PointerType>(II->getCalledValue()->getType()); - if (cast<MethodType>(Ty->getElementType())->isVarArg()) { + if (cast<FunctionType>(Ty->getElementType())->isVarArg()) { outputInstrVarArgsCall(I, Table, Type, Out); return; } |