// InvokeInst Implementation
//===----------------------------------------------------------------------===//
// InvokeInst Implementation
//===----------------------------------------------------------------------===//
-InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal, \
+InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal,
BasicBlock *IfException,
const std::vector<Value*> ¶ms,
const std::string &Name)
BasicBlock *IfException,
const std::vector<Value*> ¶ms,
const std::string &Name)
Instruction::Invoke, Name) {
Operands.reserve(3+params.size());
Operands.push_back(Use(Func, this));
Instruction::Invoke, Name) {
Operands.reserve(3+params.size());
Operands.push_back(Use(Func, this));
- Operands.push_back(Use(IfNormal, this));
- Operands.push_back(Use(IfException, this));
+ Operands.push_back(Use((Value*)IfNormal, this));
+ Operands.push_back(Use((Value*)IfException, this));
const FunctionType *MTy =
cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType());
const FunctionType *MTy =
cast<FunctionType>(cast<PointerType>(Func->getType())->getElementType());