Propagate calling conv for invokes too

llvm-svn: 73692
This commit is contained in:
Anton Korobeynikov 2009-06-18 08:13:56 +00:00
parent b21175ccbe
commit 832b9e6a7a
1 changed files with 4 additions and 2 deletions

View File

@ -154,8 +154,10 @@ public:
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
BasicBlock *UnwindDest, InputIterator ArgBegin,
InputIterator ArgEnd, const char *Name = "") {
return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest,
ArgBegin, ArgEnd), Name);
return Insert(TransferAttributes(InvokeInst::Create(Callee,
NormalDest, UnwindDest,
ArgBegin, ArgEnd),
Callee), Name);
}
UnwindInst *CreateUnwind() {