Add a couple of extra casts to avoid having to add #include

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-09 18:36:52 +00:00
parent a6fd4b0d82
commit 1413747bb4

View File

@ -43,7 +43,7 @@ CallInst::CallInst(const CallInst &CI)
// InvokeInst Implementation
//===----------------------------------------------------------------------===//
InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal, \
InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal,
BasicBlock *IfException,
const std::vector<Value*> &params,
const std::string &Name)
@ -52,8 +52,8 @@ InvokeInst::InvokeInst(Value *Func, BasicBlock *IfNormal, \
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());