-InvokeInst::InvokeInst(Value *Meth, BasicBlock *IfNormal, \
- BasicBlock *IfException, const vector<Value*>¶ms,
- const string &Name)
- : TerminatorInst(cast<MethodType>(cast<PointerType>(Meth->getType())
- ->getValueType())->getReturnType(),
- Instruction::Invoke, Name) {
+InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal,
+ BasicBlock *IfException,
+ const std::vector<Value*> ¶ms,
+ const std::string &Name, Instruction *InsertBefore)
+ : TerminatorInst(cast<FunctionType>(cast<PointerType>(Func->getType())
+ ->getElementType())->getReturnType(),
+ Instruction::Invoke, Name, InsertBefore) {