Propagate calling conv for invokes too

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2009-06-18 08:13:56 +00:00
parent b7b39987bb
commit df9d0f0ed2

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() {